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


Java Jre.getOptions方法代码示例

本文整理汇总了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());
}
 
开发者ID:clidev,项目名称:spike.x,代码行数:24,代码来源:RcBuilder.java

示例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());
}
 
开发者ID:p4553d,项目名称:carPirate,代码行数:18,代码来源:RcBuilder.java

示例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());
}
 
开发者ID:nyusemantics,项目名称:LambdaCalculator,代码行数:20,代码来源:RcBuilder.java

示例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());
}
 
开发者ID:somedevelopment,项目名称:CardDAVSyncOutlook,代码行数:28,代码来源:RcBuilder.java


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