本文整理汇总了Java中net.sf.launch4j.config.Jre.getOptions方法的典型用法代码示例。如果您正苦于以下问题:Java Jre.getOptions方法的具体用法?Java Jre.getOptions怎么用?Java Jre.getOptions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.launch4j.config.Jre
的用法示例。
在下文中一共展示了Jre.getOptions方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addJre
import net.sf.launch4j.config.Jre; //导入方法依赖的package包/类
private void addJre(Jre jre) {
addWindowsPath(JRE_PATH, jre.getPath());
addTrue(BUNDLED_JRE_64_BIT, jre.getBundledJre64Bit());
addTrue(BUNDLED_JRE_AS_FALLBACK, jre.getBundledJreAsFallback());
addText(JAVA_MIN_VER, jre.getMinVersion());
addText(JAVA_MAX_VER, jre.getMaxVersion());
addText(JDK_PREFERENCE, String.valueOf(jre.getJdkPreferenceIndex()));
addInteger(RUNTIME_BITS, jre.getRuntimeBitsIndex() + 1);
addInteger(INITIAL_HEAP_SIZE, jre.getInitialHeapSize());
addInteger(INITIAL_HEAP_PERCENT, jre.getInitialHeapPercent());
addInteger(MAX_HEAP_SIZE, jre.getMaxHeapSize());
addInteger(MAX_HEAP_PERCENT, jre.getMaxHeapPercent());
StringBuffer options = new StringBuffer();
if (jre.getOptions() != null && !jre.getOptions().isEmpty()) {
addSpace(options);
append(options, jre.getOptions(), " ");
}
addText(JVM_OPTIONS, options.toString());
}
示例2: addJre
import net.sf.launch4j.config.Jre; //导入方法依赖的package包/类
private void addJre(Jre jre) {
addWindowsPath(JRE_PATH, jre.getPath());
addText(JAVA_MIN_VER, jre.getMinVersion());
addText(JAVA_MAX_VER, jre.getMaxVersion());
addText(JDK_PREFERENCE, String.valueOf(jre.getJdkPreferenceIndex()));
addInteger(INITIAL_HEAP_SIZE, jre.getInitialHeapSize());
addInteger(INITIAL_HEAP_PERCENT, jre.getInitialHeapPercent());
addInteger(MAX_HEAP_SIZE, jre.getMaxHeapSize());
addInteger(MAX_HEAP_PERCENT, jre.getMaxHeapPercent());
StringBuffer options = new StringBuffer();
if (jre.getOptions() != null && !jre.getOptions().isEmpty()) {
addSpace(options);
append(options, jre.getOptions(), " ");
}
addText(JVM_OPTIONS, options.toString());
}
示例3: addJre
import net.sf.launch4j.config.Jre; //导入方法依赖的package包/类
private void addJre(Jre jre) {
addWindowsPath(JRE_PATH, jre.getPath());
addText(JAVA_MIN_VER, jre.getMinVersion());
addText(JAVA_MAX_VER, jre.getMaxVersion());
addText(JDK_PREFERENCE, String.valueOf(jre.getJdkPreferenceIndex()));
addInteger(INITIAL_HEAP_SIZE, jre.getInitialHeapSize());
addInteger(INITIAL_HEAP_PERCENT, jre.getInitialHeapPercent());
addInteger(MAX_HEAP_SIZE, jre.getMaxHeapSize());
addInteger(MAX_HEAP_PERCENT, jre.getMaxHeapPercent());
StringBuffer options = new StringBuffer();
if (jre.getOptions() != null && !jre.getOptions().isEmpty()) {
addSpace(options);
append(options, jre.getOptions(), " ");
}
addText(JVM_OPTIONS, options.toString());
}
示例4: addJre
import net.sf.launch4j.config.Jre; //导入方法依赖的package包/类
private void addJre(Jre jre) {
addWindowsPath(JRE_PATH, jre.getPath());
addTrue(BUNDLED_JRE_64_BIT, jre.getBundledJre64Bit());
addText(JAVA_MIN_VER, jre.getMinVersion());
addText(JAVA_MAX_VER, jre.getMaxVersion());
addText(JDK_PREFERENCE, String.valueOf(jre.getJdkPreferenceIndex()));
String runtimeBits = jre.getRuntimeBits();
int use64Bits = runtimeBits == Jre.RUNTIME_BITS_64 || runtimeBits == Jre.RUNTIME_BITS_64_AND_32
? USE_64_BIT_RUNTIME : 0;
int use32Bits = runtimeBits == Jre.RUNTIME_BITS_32 || runtimeBits == Jre.RUNTIME_BITS_64_AND_32
? USE_32_BIT_RUNTIME : 0;
addInteger(RUNTIME_BITS, use64Bits | use32Bits);
addInteger(INITIAL_HEAP_SIZE, jre.getInitialHeapSize());
addInteger(INITIAL_HEAP_PERCENT, jre.getInitialHeapPercent());
addInteger(MAX_HEAP_SIZE, jre.getMaxHeapSize());
addInteger(MAX_HEAP_PERCENT, jre.getMaxHeapPercent());
StringBuffer options = new StringBuffer();
if (jre.getOptions() != null && !jre.getOptions().isEmpty()) {
addSpace(options);
append(options, jre.getOptions(), " ");
}
addText(JVM_OPTIONS, options.toString());
}