Java Code Examples for sun.rmi.rmic.iiop.Util#getOutputDirectoryForStub()

The following examples show how to use sun.rmi.rmic.iiop.Util#getOutputDirectoryForStub() . 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: Generator.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 output file
 * for the given OutputType.
 * @param outputType The type to create a file for.
 * @param destinationDir The directory to use as the root of the
 * package heirarchy.  May be null, in which case the current
 * classpath is searched to find the directory in which to create
 * the output file.  If that search fails (most likely because the
 * package directory lives in a zip or jar file rather than the
 * file system), the current user directory is used.
 */
protected File getFileFor(OutputType outputType, File destinationDir) {
    // Calling this method does some crucial initialization
    // in a subclass implementation. Don't skip it.
    Identifier id = getOutputId(outputType);
    File packageDir = null;
    if(idl){
        packageDir = Util.getOutputDirectoryForIDL(id,destinationDir,env);
    } else {
        packageDir = Util.getOutputDirectoryForStub(id,destinationDir,env);
    }
    String classFileName = outputType.getName() + getFileNameExtensionFor(outputType);
    return new File(packageDir, classFileName);
}
 
Example 2
Source File: Generator.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 output file
 * for the given OutputType.
 * @param outputType The type to create a file for.
 * @param destinationDir The directory to use as the root of the
 * package heirarchy.  May be null, in which case the current
 * classpath is searched to find the directory in which to create
 * the output file.  If that search fails (most likely because the
 * package directory lives in a zip or jar file rather than the
 * file system), the current user directory is used.
 */
protected File getFileFor(OutputType outputType, File destinationDir) {
    // Calling this method does some crucial initialization
    // in a subclass implementation. Don't skip it.
    Identifier id = getOutputId(outputType);
    File packageDir = null;
    if(idl){
        packageDir = Util.getOutputDirectoryForIDL(id,destinationDir,env);
    } else {
        packageDir = Util.getOutputDirectoryForStub(id,destinationDir,env);
    }
    String classFileName = outputType.getName() + getFileNameExtensionFor(outputType);
    return new File(packageDir, classFileName);
}
 
Example 3
Source File: Generator.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 output file
 * for the given OutputType.
 * @param outputType The type to create a file for.
 * @param destinationDir The directory to use as the root of the
 * package heirarchy.  May be null, in which case the current
 * classpath is searched to find the directory in which to create
 * the output file.  If that search fails (most likely because the
 * package directory lives in a zip or jar file rather than the
 * file system), the current user directory is used.
 */
protected File getFileFor(OutputType outputType, File destinationDir) {
    // Calling this method does some crucial initialization
    // in a subclass implementation. Don't skip it.
    Identifier id = getOutputId(outputType);
    File packageDir = null;
    if(idl){
        packageDir = Util.getOutputDirectoryForIDL(id,destinationDir,env);
    } else {
        packageDir = Util.getOutputDirectoryForStub(id,destinationDir,env);
    }
    String classFileName = outputType.getName() + getFileNameExtensionFor(outputType);
    return new File(packageDir, classFileName);
}
 
Example 4
Source File: Generator.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 output file
 * for the given OutputType.
 * @param outputType The type to create a file for.
 * @param destinationDir The directory to use as the root of the
 * package heirarchy.  May be null, in which case the current
 * classpath is searched to find the directory in which to create
 * the output file.  If that search fails (most likely because the
 * package directory lives in a zip or jar file rather than the
 * file system), the current user directory is used.
 */
protected File getFileFor(OutputType outputType, File destinationDir) {
    // Calling this method does some crucial initialization
    // in a subclass implementation. Don't skip it.
    Identifier id = getOutputId(outputType);
    File packageDir = null;
    if(idl){
        packageDir = Util.getOutputDirectoryForIDL(id,destinationDir,env);
    } else {
        packageDir = Util.getOutputDirectoryForStub(id,destinationDir,env);
    }
    String classFileName = outputType.getName() + getFileNameExtensionFor(outputType);
    return new File(packageDir, classFileName);
}
 
Example 5
Source File: Generator.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 output file
 * for the given OutputType.
 * @param outputType The type to create a file for.
 * @param destinationDir The directory to use as the root of the
 * package heirarchy.  May be null, in which case the current
 * classpath is searched to find the directory in which to create
 * the output file.  If that search fails (most likely because the
 * package directory lives in a zip or jar file rather than the
 * file system), the current user directory is used.
 */
protected File getFileFor(OutputType outputType, File destinationDir) {
    // Calling this method does some crucial initialization
    // in a subclass implementation. Don't skip it.
    Identifier id = getOutputId(outputType);
    File packageDir = null;
    if(idl){
        packageDir = Util.getOutputDirectoryForIDL(id,destinationDir,env);
    } else {
        packageDir = Util.getOutputDirectoryForStub(id,destinationDir,env);
    }
    String classFileName = outputType.getName() + getFileNameExtensionFor(outputType);
    return new File(packageDir, classFileName);
}
 
Example 6
Source File: Generator.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 output file
 * for the given OutputType.
 * @param outputType The type to create a file for.
 * @param destinationDir The directory to use as the root of the
 * package heirarchy.  May be null, in which case the current
 * classpath is searched to find the directory in which to create
 * the output file.  If that search fails (most likely because the
 * package directory lives in a zip or jar file rather than the
 * file system), the current user directory is used.
 */
protected File getFileFor(OutputType outputType, File destinationDir) {
    // Calling this method does some crucial initialization
    // in a subclass implementation. Don't skip it.
    Identifier id = getOutputId(outputType);
    File packageDir = null;
    if(idl){
        packageDir = Util.getOutputDirectoryForIDL(id,destinationDir,env);
    } else {
        packageDir = Util.getOutputDirectoryForStub(id,destinationDir,env);
    }
    String classFileName = outputType.getName() + getFileNameExtensionFor(outputType);
    return new File(packageDir, classFileName);
}
 
Example 7
Source File: Generator.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 output file
 * for the given OutputType.
 * @param outputType The type to create a file for.
 * @param destinationDir The directory to use as the root of the
 * package heirarchy.  May be null, in which case the current
 * classpath is searched to find the directory in which to create
 * the output file.  If that search fails (most likely because the
 * package directory lives in a zip or jar file rather than the
 * file system), the current user directory is used.
 */
protected File getFileFor(OutputType outputType, File destinationDir) {
    // Calling this method does some crucial initialization
    // in a subclass implementation. Don't skip it.
    Identifier id = getOutputId(outputType);
    File packageDir = null;
    if(idl){
        packageDir = Util.getOutputDirectoryForIDL(id,destinationDir,env);
    } else {
        packageDir = Util.getOutputDirectoryForStub(id,destinationDir,env);
    }
    String classFileName = outputType.getName() + getFileNameExtensionFor(outputType);
    return new File(packageDir, classFileName);
}
 
Example 8
Source File: Generator.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 output file
 * for the given OutputType.
 * @param outputType The type to create a file for.
 * @param destinationDir The directory to use as the root of the
 * package heirarchy.  May be null, in which case the current
 * classpath is searched to find the directory in which to create
 * the output file.  If that search fails (most likely because the
 * package directory lives in a zip or jar file rather than the
 * file system), the current user directory is used.
 */
protected File getFileFor(OutputType outputType, File destinationDir) {
    // Calling this method does some crucial initialization
    // in a subclass implementation. Don't skip it.
    Identifier id = getOutputId(outputType);
    File packageDir = null;
    if(idl){
        packageDir = Util.getOutputDirectoryForIDL(id,destinationDir,env);
    } else {
        packageDir = Util.getOutputDirectoryForStub(id,destinationDir,env);
    }
    String classFileName = outputType.getName() + getFileNameExtensionFor(outputType);
    return new File(packageDir, classFileName);
}