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() . These examples are extracted from open source projects. 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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);
}