本文整理汇总了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");
}
}
示例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");
}
}