当前位置: 首页>>代码示例>>Java>>正文


Java Platform.createPlatform方法代码示例

本文整理汇总了Java中com.sun.squawk.builder.platform.Platform.createPlatform方法的典型用法代码示例。如果您正苦于以下问题:Java Platform.createPlatform方法的具体用法?Java Platform.createPlatform怎么用?Java Platform.createPlatform使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.squawk.builder.platform.Platform的用法示例。


在下文中一共展示了Platform.createPlatform方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Build

import com.sun.squawk.builder.platform.Platform; //导入方法依赖的package包/类
/**
     * Creates an instance of the builder.
     * @param buildDotOverrideFileName the name of any file that overrides builder properties
     */
    public Build(String buildDotOverrideFileName) {
        File defaultProperties = new File("build.properties");
        if (defaultProperties.exists()) {
            properties = loadProperties(defaultProperties, null);
            if (buildDotOverrideFileName == null) {
                buildDotOverrideFileName = "build.override";
            } else {
                specfifiedBuildDotOverrideFileName = buildDotOverrideFileName;
            }
            File overideProperties = new File(buildDotOverrideFileName);
            if (overideProperties.exists()) {

                // Make it very clear to the user which properties in the standard properties
                // file are potentially being overridden
//                System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Using build override file: " + overideProperties.getPath() + " <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
                properties = loadProperties(overideProperties, properties);
            }
        } else {
            throw new BuildException("could not find build.properties");
        }
        dynamicProperties = new Properties();
        platform = Platform.createPlatform(this);
        // target ccompiler set later...
        jdk = new JDK(platform);
        preprocessor = new Preprocessor();
        preprocessor.properties = properties;
        macroizer = new Macroizer();
        installBuiltinCommands();
        javaCompiler = new JavaCompiler(this);
        isJava5SyntaxSupported = false;
        if (getProperty("JAVA5SYNTAX") != null) {
            isJava5SyntaxSupported = getBooleanProperty("JAVA5SYNTAX");
        }
    }
 
开发者ID:tomatsu,项目名称:squawk,代码行数:39,代码来源:Build.java

示例2: Build

import com.sun.squawk.builder.platform.Platform; //导入方法依赖的package包/类
/**
 * Creates an instance of the builder.
 * @param buildDotOverrideFileName the name of any file that overrides builder properties
 */
public Build(String buildDotOverrideFileName) {
    File defaultProperties = new File("build.properties");
    if (defaultProperties.exists()) {
        properties = loadProperties(defaultProperties, null);
        if (buildDotOverrideFileName == null) {
            buildDotOverrideFileName = "build.override";
        } else {
            specfifiedBuildDotOverrideFileName = buildDotOverrideFileName;
        }
        File overideProperties = new File(buildDotOverrideFileName);
        if (overideProperties.exists()) {

            // Make it very clear to the user which properties in the standard properties
            // file are potentially being overridden
            System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Using build override file: " + overideProperties.getPath() + " <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
            properties = loadProperties(overideProperties, properties);
        }
    } else {
        throw new BuildException("could not find build.properties");
    }
    dynamicProperties = new Properties();
    platform = Platform.createPlatform(this);
    // target ccompiler set later...
    jdk = new JDK(platform);
    preprocessor = new Preprocessor();
    preprocessor.properties = properties;
    macroizer = new Macroizer();
    installBuiltinCommands();
    javaCompiler = new JavaCompiler(this);
    isJava5SyntaxSupported = false;
    if (getProperty("JAVA5SYNTAX") != null) {
        isJava5SyntaxSupported = getBooleanProperty("JAVA5SYNTAX");
    }
}
 
开发者ID:sics-sse,项目名称:moped,代码行数:39,代码来源:Build.java


注:本文中的com.sun.squawk.builder.platform.Platform.createPlatform方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。