- add jvm args in linux distribution start script

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7477 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2011-05-10 15:18:42 +00:00
parent 792f44cf9f
commit 1541b2b4df
2 changed files with 3 additions and 2 deletions

View File

@ -73,7 +73,7 @@ public class DesktopExeCompositeProvider implements ProjectCustomizer.CompositeC
launch4j = new ProjectExtensionManager("launch4j", "v1.1", new String[]{"jar", "-launch4j-exe"});
launch4j.setAntTaskLibrary("launch4j");
macapp = new ProjectExtensionManager("macapp", "v1.1", new String[]{"jar", "-mac-app"});
linux = new ProjectExtensionManager("linuxlauncher", "v1.0", new String[]{"jar", "-linux-launcher"});
linux = new ProjectExtensionManager("linuxlauncher", "v1.1", new String[]{"jar", "-linux-launcher"});
}
public void actionPerformed(ActionEvent e) {

View File

@ -2,8 +2,9 @@
<target name="-linux-launcher" depends="-test-linux-launcher-enabled" if="is.linux.launcher.enabled">
<echo>Linux Launcher Creation</echo>
<echo file="${application.title}.sh">#!/bin/sh
java -jar ${application.title}.jar
java JVMARGS -jar ${application.title}.jar
</echo>
<replace file="${application.title}.sh" token="JVMARGS" value="${run.jvmargs}"/>
<zip destfile="${dist.dir}/${application.title}-Linux.zip">
<zipfileset file="${application.title}.sh" filemode="755" prefix=""/>
<zipfileset file="${dist.jar}" prefix=""/>