Build.xml improvements
Split reobfuscation out of compile and added run and test-run targets.
This commit is contained in:
parent
a0eab6d603
commit
019f40dfd3
1 changed files with 21 additions and 2 deletions
23
build.xml
23
build.xml
|
@ -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"/>
|
||||
|
||||
|
|
Loading…
Reference in a new issue