nor..67 8eb7c833e6 SDK:
- change exe creation to use config file
- fix run args not going to exe file

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9793 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-02 13:09:32 +00:00

26 lines
1.4 KiB
XML

<target name="-launch4j-exe" depends="-test-launch4j-exe-enabled" if="is.launch4j.exe.enabled">
<echo>Windows EXE Creation</echo>
<taskdef classname="net.sf.launch4j.ant.Launch4jTask" classpath="${libs.launch4j.classpath}" name="launch4j"/>
<copy file="resources/launch4j/winapp-config.xml" tofile="launch4j-config.xml" overwrite="true">
<filterchain>
<replacestring from="$${dist.dir}" to="${dist.dir}"/>
<replacestring from="$${dist.jar}" to="${dist.jar}"/>
<replacestring from="$${main.class}" to="${main.class}"/>
<replacestring from="$${run.jvmargs}" to="${run.jvmargs}"/>
<replacestring from="$${application.title}" to="${application.title}"/>
</filterchain>
</copy>
<launch4j configFile="launch4j-config.xml"/>
<delete file="launch4j-config.xml"/>
<zip destfile="${dist.dir}/${application.title}-Windows.zip">
<zipfileset file="${dist.dir}/${application.title}.exe" prefix=""/>
<zipfileset dir="${dist.dir}/lib" prefix="lib/"/>
</zip>
<delete file="${dist.dir}/${application.title}.exe"/>
</target>
<target name="-test-launch4j-exe-enabled">
<condition property="is.launch4j.exe.enabled">
<istrue value="${launch4j.exe.enabled}"/>
</condition>
</target>