Build.xml improvements

Split reobfuscation out of compile and added run and test-run targets.
This commit is contained in:
CovertJaguar 2013-04-27 16:48:54 -07:00
parent a0eab6d603
commit 019f40dfd3

View file

@ -134,7 +134,11 @@
<resourcecontains resource="${mcp.dir}/logs/client_compile.log" substring="error:"/>
</condition>
</fail>
</target>
<target name="reobf" depends="compile">
<!-- Reobfuscate -->
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows">
<arg line="/c reobfuscate_srg.bat"/>
@ -169,7 +173,7 @@
</target>
<!-- Package the compiled files -->
<target name="package" depends="compile">
<target name="package" depends="reobf">
<delete dir="${jar.dir}"/>
<mkdir dir="${jar.dir}"/>
@ -182,6 +186,21 @@
</target>
<target name="run">
<!-- Start Client -->
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows">
<arg line="/c startclient.bat"/>
</exec>
<exec dir="${mcp.dir}" executable="sh" osfamily="unix">
<arg value="startclient.sh"/>
</exec>
</target>
<target name="test-run" depends="compile,run"/>
<!-- Default target to run -->
<target name="main" depends="package"/>