2012-06-29 16:00:22 +02:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
<project name="Equivalent Exchange 3">
|
|
|
|
|
|
|
|
<property file="build.properties" />
|
|
|
|
|
|
|
|
<target name="clean">
|
2012-12-17 22:00:04 +01:00
|
|
|
<delete file="${dir.development}\mcp\src\minecraft\mcmod.info" />
|
|
|
|
<delete dir="${dir.development}\mcp\src\minecraft\com" />
|
2012-10-26 03:56:40 +02:00
|
|
|
<delete dir="${dir.development}\mcp\reobf\minecraft" />
|
2012-06-29 16:00:22 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="build">
|
2012-12-17 22:00:04 +01:00
|
|
|
<copy todir="${dir.development}\mcp\src\minecraft">
|
2012-06-29 16:00:22 +02:00
|
|
|
<fileset dir="${dir.development}\source\Equivalent-Exchange-3\ee3_common\" />
|
|
|
|
</copy>
|
2012-12-17 22:00:04 +01:00
|
|
|
<replace dir="${dir.development}\mcp\src\minecraft" token="@VERSION@" value="${release.mod.version}" />
|
2013-04-08 02:29:57 +02:00
|
|
|
<replace dir="${dir.development}\mcp\src\minecraft" token="@FINGERPRINT@" value="${release.mod.fingerprint}" />
|
2012-06-29 16:00:22 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="recompile">
|
|
|
|
<exec dir="${dir.development}\mcp" executable="cmd" os="Windows 7">
|
|
|
|
<arg line="/c recompile.bat" />
|
|
|
|
</exec>
|
2012-12-17 22:00:04 +01:00
|
|
|
<exec dir="${dir.development}\mcp" executable="cmd" os="Windows 8">
|
|
|
|
<arg line="/c recompile.bat" />
|
|
|
|
</exec>
|
2012-09-27 23:45:27 +02:00
|
|
|
<exec dir="${dir.development}\mcp" executable="bash" os="Linux">
|
|
|
|
<arg line="recompile.sh" />
|
|
|
|
</exec>
|
2012-11-24 15:50:35 +01:00
|
|
|
<exec dir="${dir.development}\mcp" executable="bash" os="Mac OS X">
|
|
|
|
<arg line="recompile.sh" />
|
|
|
|
</exec>
|
2012-06-29 16:00:22 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="reobfuscate">
|
|
|
|
<exec dir="${dir.development}\mcp" executable="cmd" os="Windows 7">
|
2013-04-08 02:29:57 +02:00
|
|
|
<arg line="/c reobfuscate_srg.bat" />
|
2012-06-29 16:00:22 +02:00
|
|
|
</exec>
|
2012-12-17 22:00:04 +01:00
|
|
|
<exec dir="${dir.development}\mcp" executable="cmd" os="Windows 8">
|
2013-04-08 02:29:57 +02:00
|
|
|
<arg line="/c reobfuscate_srg.bat" />
|
2012-12-17 22:00:04 +01:00
|
|
|
</exec>
|
2012-09-27 23:45:27 +02:00
|
|
|
<exec dir="${dir.development}\mcp" executable="bash" os="Linux">
|
2013-04-08 02:29:57 +02:00
|
|
|
<arg line="reobfuscate_srg.sh" />
|
2012-09-27 23:45:27 +02:00
|
|
|
</exec>
|
2012-11-24 15:50:35 +01:00
|
|
|
<exec dir="${dir.development}\mcp" executable="bash" os="Mac OS X">
|
2013-04-08 02:29:57 +02:00
|
|
|
<arg line="reobfuscate_srg.sh" />
|
2012-11-24 15:50:35 +01:00
|
|
|
</exec>
|
2012-06-29 16:00:22 +02:00
|
|
|
</target>
|
|
|
|
|
2012-10-26 16:45:27 +02:00
|
|
|
<target name="release-shared">
|
|
|
|
<!-- Prep for the release -->
|
|
|
|
<antcall target="clean" />
|
|
|
|
<antcall target="build" />
|
|
|
|
<antcall target="recompile" />
|
|
|
|
<antcall target="reobfuscate" />
|
|
|
|
|
|
|
|
<!-- Build the jar -->
|
|
|
|
<mkdir dir="${dir.share}\${release.minecraft.version}\${release.mod.version}" />
|
|
|
|
<jar destfile="${dir.share}\${release.minecraft.version}\${release.mod.version}\ee3-universal-${release.mod.version}.jar">
|
|
|
|
<fileset dir="${dir.development}\mcp\src\common\" includes="mcmod.info" />
|
|
|
|
<fileset dir="${dir.development}\mcp\reobf\minecraft" />
|
|
|
|
<fileset dir="${dir.development}\source\Equivalent-Exchange-3\resources" />
|
|
|
|
</jar>
|
|
|
|
|
|
|
|
<!-- Clean up the MCP source now that we are done -->
|
|
|
|
<antcall target="clean" />
|
|
|
|
</target>
|
|
|
|
|
2012-10-26 03:56:40 +02:00
|
|
|
<target name="release">
|
2012-06-29 16:00:22 +02:00
|
|
|
<!-- Prep for the release -->
|
|
|
|
<antcall target="clean" />
|
|
|
|
<antcall target="build" />
|
|
|
|
<antcall target="recompile" />
|
|
|
|
<antcall target="reobfuscate" />
|
|
|
|
|
|
|
|
<!-- Build the jar -->
|
2012-10-26 03:56:40 +02:00
|
|
|
<mkdir dir="${dir.release}\${release.minecraft.version}\${release.mod.version}" />
|
|
|
|
<jar destfile="${dir.release}\${release.minecraft.version}\${release.mod.version}\ee3-universal-${release.mod.version}.jar">
|
2012-12-17 22:00:04 +01:00
|
|
|
<fileset dir="${dir.development}\mcp\src\minecraft\" includes="mcmod.info" />
|
2012-06-29 16:00:22 +02:00
|
|
|
<fileset dir="${dir.development}\mcp\reobf\minecraft" />
|
|
|
|
<fileset dir="${dir.development}\source\Equivalent-Exchange-3\resources" />
|
|
|
|
</jar>
|
|
|
|
|
2013-04-08 02:29:57 +02:00
|
|
|
<!-- Sign the jar -->
|
|
|
|
<signjar jar="${dir.release}\${release.minecraft.version}\${release.mod.version}\ee3-universal-${release.mod.version}.jar" keystore="${keystore.location}" alias="${keystore.alias}" storepass="${keystore.password}" />
|
|
|
|
|
2012-06-29 16:00:22 +02:00
|
|
|
<!-- Clean up the MCP source now that we are done -->
|
|
|
|
<antcall target="clean" />
|
|
|
|
</target>
|
|
|
|
</project>
|