Java Code Examples for com.sun.corba.se.impl.util.Utility#tieName()

The following examples show how to use com.sun.corba.se.impl.util.Utility#tieName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RMIGenerator.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}
 
Example 2
Source File: RMIGenerator.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}
 
Example 3
Source File: RMIGenerator.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}
 
Example 4
Source File: RMIGenerator.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}
 
Example 5
Source File: RMIGenerator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}
 
Example 6
Source File: RMIGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}
 
Example 7
Source File: RMIGenerator.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}
 
Example 8
Source File: RMIGenerator.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}
 
Example 9
Source File: RMIGenerator.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}
 
Example 10
Source File: RMIGenerator.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}
 
Example 11
Source File: RMIGenerator.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}
 
Example 12
Source File: RMIGenerator.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}
 
Example 13
Source File: RMIGenerator.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the File object that should be used as the source file
 * for the given Java class, using the supplied destination
 * directory for the top of the package hierarchy.
 */
protected static File sourceFileForClass(Identifier className,
                                         Identifier outputClassName,
                                         File destDir,
                                         BatchEnvironment env)
{
    File packageDir = Util.getOutputDirectoryFor(className,destDir,env);
    String outputName = Names.mangleClass(outputClassName).getName().toString();

    // Is there any existing _Tie equivalent leftover from a
    // previous invocation of rmic -iiop? Only do this once per
    // class by looking for skeleton generation...

    if (outputName.endsWith("_Skel")) {
        String classNameStr = className.getName().toString();
        File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class");
        if (temp.exists()) {

            // Found a tie. Is IIOP generation also being done?

            if (!env.getMain().iiopGeneration) {

                // No, so write a warning...

                env.error(0,"warn.rmic.tie.found",
                          classNameStr,
                          temp.getAbsolutePath());
            }
        }
    }

    String outputFileName = outputName + ".java";
    return new File(packageDir, outputFileName);
}