Browse Source

- add jvm args in linux distribution start script

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7477 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 14 years ago
parent
commit
4dbf544961

+ 1 - 1
jme3-desktop-executables/src/com/jme3/gde/desktop/executables/DesktopExeCompositeProvider.java

@@ -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) {

+ 2 - 1
jme3-desktop-executables/src/com/jme3/gde/desktop/executables/linux-targets.xml

@@ -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=""/>