Author: kono
Date: 2012-12-10 16:13:32 -0800 (Mon, 10 Dec 2012)
New Revision: 30992
Modified:
core3/gui-distribution/branches/3.0.0-release/packaging/src/main/install4j/Cytoscape.install4j
Log:
Installer now sets heap size to the 95% of physical memory at the installation
time.
Modified:
core3/gui-distribution/branches/3.0.0-release/packaging/src/main/install4j/Cytoscape.install4j
===================================================================
---
core3/gui-distribution/branches/3.0.0-release/packaging/src/main/install4j/Cytoscape.install4j
2012-12-10 21:13:27 UTC (rev 30991)
+++
core3/gui-distribution/branches/3.0.0-release/packaging/src/main/install4j/Cytoscape.install4j
2012-12-11 00:13:32 UTC (rev 30992)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<install4j version="4.2.8" transformSequenceNumber="2">
<directoryPresets config="../../../target" />
- <application name="Cytoscape" distributionSourceDir=""
applicationId="5211-3645-3154-2580" mediaDir="dist"
mediaFilePattern="${compiler:sys.shortName}_${compiler:sys.version}_${compiler:sys.platform}"
compression="6" lzmaCompression="false" pack200Compression="false"
excludeSignedFromPacking="true" keepModificationTimes="false"
missingFilesStrategy="warn" shortName="Cytoscape" publisher="Cytoscape
Consortium" publisherWeb="http://cytoscape.org" version="${version}"
allPathsRelative="true" backupOnSave="false" autoSave="false"
convertDotsToUnderscores="true" macSignature="????" installerName=""
javaMinVersion="1.6" javaMaxVersion="" allowBetaVM="true" jdkMode="runtimeJre"
jdkName="">
+ <application name="Cytoscape" distributionSourceDir=""
applicationId="5211-3645-3154-2580" mediaDir="dist"
mediaFilePattern="${compiler:sys.shortName}_${compiler:sys.version}_${compiler:sys.platform}"
compression="6" lzmaCompression="false" pack200Compression="false"
excludeSignedFromPacking="true" keepModificationTimes="false"
missingFilesStrategy="warn" shortName="Cytoscape" publisher="Cytoscape
Consortium" publisherWeb="http://www.cytoscape.org" version="${version}"
allPathsRelative="true" backupOnSave="false" autoSave="false"
convertDotsToUnderscores="true" macSignature="????" installerName=""
javaMinVersion="1.6" javaMaxVersion="" allowBetaVM="true" jdkMode="runtimeJre"
jdkName="">
<languages skipLanguageSelection="false"
languageSelectionInPrincipalLanguage="false">
<principalLanguage id="en" customLocalizationFile="" />
<additionalLanguages />
@@ -66,7 +66,7 @@
<versionLine x="20" y="40" text="version ${compiler:sys.version}"
font="Arial" fontSize="8" fontColor="0,0,0" fontWeight="500" />
</text>
</splashScreen>
- <java mainClass="org.cytoscape.launcher.internal.Launcher"
vmParameters="-Xss10M -Xms128M -Xmx1G -Dcom.sun.management.jmxremote
"-Dkaraf.instances=${launcher:sys.launcherDirectory}/framework/instances"
"-Dkaraf.home=${launcher:sys.launcherDirectory}/framework"
"-Dkaraf.base=${launcher:sys.launcherDirectory}/framework"
"-Djava.util.logging.config.file=${launcher:sys.launcherDirectory}/framework/etc/java.util.logging.properties"
-Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=false" arguments=""
allowVMPassthroughParameters="true" preferredVM="" bundleRuntime="true">
+ <java mainClass="org.cytoscape.launcher.internal.Launcher"
vmParameters="-Xss10M -Xms128M -Dcom.sun.management.jmxremote
"-Dkaraf.instances=${launcher:sys.launcherDirectory}/framework/instances"
"-Dkaraf.home=${launcher:sys.launcherDirectory}/framework"
"-Dkaraf.base=${launcher:sys.launcherDirectory}/framework"
"-Djava.util.logging.config.file=${launcher:sys.launcherDirectory}/framework/etc/java.util.logging.properties"
-Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=false" arguments=""
allowVMPassthroughParameters="true" preferredVM="" bundleRuntime="true">
<classPath>
<scanDirectory location="." failOnError="false" />
<directory location="lib" failOnError="false" />
@@ -735,6 +735,34 @@
<preActivation />
<postActivation />
<actions>
+ <action name="" id="279"
beanClass="com.install4j.runtime.beans.actions.control.RunScriptAction"
enabled="true" commentSet="false" comment="" rollbackBarrier="false"
multiExec="false" failureStrategy="1" errorMessage="">
+ <serializedBean>
+ <java class="java.beans.XMLDecoder">
+ <object
class="com.install4j.runtime.beans.actions.control.RunScriptAction">
+ <void property="script">
+ <object class="com.install4j.api.beans.ScriptProperty">
+ <void property="value">
+ <string>// Dynamic VM parameters can be added to
the .vmoptions file of a launcher
+
+// The SystemInfo class has a method to determine the physical memory.
+// In this case we want to use 50% of the physical memory for our application.
+String xmxValue = " -Xmx" + Math.round(SystemInfo.getPhysicalMemory() * 0.95 /
1024 / 1024) + "m";
+
+// You can set the -Xmx parameter to a variable
+context.setVariable("xmx", xmxValue);
+
+return true;
+
+//and then use an ""Add VM options" action with the "VM options" property set
to
+// ${installer:xmx}</string>
+ </void>
+ </object>
+ </void>
+ </object>
+ </java>
+ </serializedBean>
+ <condition />
+ </action>
<action name="" id="11"
beanClass="com.install4j.runtime.beans.actions.InstallFilesAction"
enabled="true" commentSet="false" comment="" rollbackBarrier="false"
multiExec="false" failureStrategy="1" errorMessage="">
<serializedBean>
<java class="java.beans.XMLDecoder">
@@ -743,6 +771,25 @@
</serializedBean>
<condition />
</action>
+ <action name="" id="280"
beanClass="com.install4j.runtime.beans.actions.misc.AddVmOptionsAction"
enabled="true" commentSet="false" comment="" rollbackBarrier="false"
multiExec="false" failureStrategy="1" errorMessage="">
+ <serializedBean>
+ <java class="java.beans.XMLDecoder">
+ <object
class="com.install4j.runtime.beans.actions.misc.AddVmOptionsAction">
+ <void property="launcherId">
+ <string>3</string>
+ </void>
+ <void property="vmOptions">
+ <array class="java.lang.String" length="1">
+ <void index="0">
+ <string>${installer:xmx}</string>
+ </void>
+ </array>
+ </void>
+ </object>
+ </java>
+ </serializedBean>
+ <condition />
+ </action>
<action name="" id="12"
beanClass="com.install4j.runtime.beans.actions.desktop.CreateProgramGroupAction"
enabled="true" commentSet="false" comment="" rollbackBarrier="false"
multiExec="false" failureStrategy="1" errorMessage="">
<serializedBean>
<java class="java.beans.XMLDecoder">
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.