本文整理汇总了Java中com.sun.squawk.builder.ccompiler.CCompiler.Options类的典型用法代码示例。如果您正苦于以下问题:Java Options类的具体用法?Java Options怎么用?Java Options使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Options类属于com.sun.squawk.builder.ccompiler.CCompiler包,在下文中一共展示了Options类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: tryPlatformType
import com.sun.squawk.builder.ccompiler.CCompiler.Options; //导入依赖的package包/类
/**
* Test to see if the given platform property is set.
* Set the value of all of the derived platform properties.
*
* @param platformOption
*/
private void tryPlatformType(CCompiler.Options cOptions, String platformOption) {
String derivedPropName = "PLATFORM_TYPE_" + platformOption;
if (getProperty("PLATFORM_TYPE").equals(platformOption)) {
if (cOptions.platformType != null) {
throw new BuildException("platform type already set to " + cOptions.platformType);
}
cOptions.platformType = platformOption;
cOptions.cflags += " -D" + derivedPropName + "=1";
updateProperty(derivedPropName, "true", true);
// System.out.println("PLATFORM_TYPE=" + platformOption);
} else {
updateProperty(derivedPropName, "false", true);
}
}
示例2: tryPlatformType
import com.sun.squawk.builder.ccompiler.CCompiler.Options; //导入依赖的package包/类
/**
* Test to see if the given platform property is set.
* Set the value of all of the derived platform properties.
*
* @param platformOption
*/
private void tryPlatformType(CCompiler.Options cOptions, String platformOption) {
String derivedPropName = "PLATFORM_TYPE_" + platformOption;
if (getProperty("PLATFORM_TYPE").equals(platformOption)) {
if (cOptions.platformType != null) {
throw new BuildException("platform type already set to " + cOptions.platformType);
}
cOptions.platformType = platformOption;
cOptions.cflags += " -D" + derivedPropName + "=1";
updateProperty(derivedPropName, "true", true);
System.out.println("PLATFORM_TYPE=" + platformOption);
} else {
updateProperty(derivedPropName, "false", true);
}
}