2012-06-29 16:00:22 +02:00
|
|
|
<?xml version="1.0" ?>
|
2013-04-18 22:14:58 +02:00
|
|
|
<project name="Equivalent Exchange 3" default="build">
|
2012-06-29 16:00:22 +02:00
|
|
|
|
2013-04-12 19:01:37 +02:00
|
|
|
<property file="build.properties" prefix="build"/>
|
|
|
|
<property file="build_number.properties" prefix="build_number"/>
|
|
|
|
|
2012-06-29 16:00:22 +02:00
|
|
|
<target name="clean">
|
2013-04-12 19:01:37 +02:00
|
|
|
<delete file="${build.dir.development}\mcp\src\minecraft\mcmod.info" />
|
2013-04-18 22:14:58 +02:00
|
|
|
<delete dir="${build.dir.development}\mcp\src\minecraft\com\pahimar" />
|
2013-04-12 19:01:37 +02:00
|
|
|
<delete dir="${build.dir.development}\mcp\reobf\minecraft" />
|
2012-06-29 16:00:22 +02:00
|
|
|
</target>
|
|
|
|
|
2013-04-18 22:14:58 +02:00
|
|
|
<target name="increment_build_number">
|
|
|
|
<propertyfile file="build_number.properties">
|
|
|
|
<entry key="build_number" type="int" operation="+" default="1"/>
|
|
|
|
</propertyfile>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="prep">
|
2013-04-12 19:01:37 +02:00
|
|
|
<copy todir="${build.dir.development}\mcp\src\minecraft">
|
2013-09-01 16:35:31 +02:00
|
|
|
<fileset dir="${build.dir.development}\source\Equivalent-Exchange-3\common\" />
|
2012-06-29 16:00:22 +02:00
|
|
|
</copy>
|
2013-04-18 22:14:58 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="replace_tokens">
|
2013-04-12 19:01:37 +02:00
|
|
|
<replace dir="${build.dir.development}\mcp\src\minecraft" token="@VERSION@" value="${build.release.mod.version}" />
|
|
|
|
<replace dir="${build.dir.development}\mcp\src\minecraft" token="@FINGERPRINT@" value="${build.release.mod.fingerprint}" />
|
|
|
|
<replace dir="${build.dir.development}\mcp\src\minecraft" token="@BUILD_NUMBER@" value="${build_number.build_number}" />
|
2012-06-29 16:00:22 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="recompile">
|
2013-04-12 19:01:37 +02:00
|
|
|
<exec dir="${build.dir.development}\mcp" executable="cmd" osfamily="windows">
|
2012-06-29 16:00:22 +02:00
|
|
|
<arg line="/c recompile.bat" />
|
|
|
|
</exec>
|
2013-04-12 19:01:37 +02:00
|
|
|
<exec dir="${build.dir.development}\mcp" executable="bash" osfamily="unix">
|
2012-11-24 15:50:35 +01:00
|
|
|
<arg line="recompile.sh" />
|
|
|
|
</exec>
|
2012-06-29 16:00:22 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="reobfuscate">
|
2013-04-12 19:01:37 +02:00
|
|
|
<exec dir="${build.dir.development}\mcp" executable="cmd" osfamily="windows">
|
2013-04-08 02:29:57 +02:00
|
|
|
<arg line="/c reobfuscate_srg.bat" />
|
2012-06-29 16:00:22 +02:00
|
|
|
</exec>
|
2013-04-12 19:01:37 +02:00
|
|
|
<exec dir="${build.dir.development}\mcp" executable="bash" osfamily="unix">
|
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>
|
|
|
|
|
2013-04-18 22:14:58 +02:00
|
|
|
<target name="sign_jar">
|
|
|
|
<signjar jar="${build.dir.release}\${build.release.minecraft.version}\${build.release.mod.version}\ee3-universal-${build.release.mod.version}-${build_number.build_number}.jar" keystore="${build.keystore.location}" alias="${build.keystore.alias}" storepass="${build.keystore.password}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="build">
|
|
|
|
<!-- Prep for the build -->
|
2012-10-26 16:45:27 +02:00
|
|
|
<antcall target="clean" />
|
2013-04-18 22:14:58 +02:00
|
|
|
<antcall target="increment_build_number" />
|
|
|
|
<antcall target="prep" />
|
2012-10-26 16:45:27 +02:00
|
|
|
<antcall target="recompile" />
|
|
|
|
<antcall target="reobfuscate" />
|
|
|
|
|
|
|
|
<!-- Build the jar -->
|
2013-04-18 22:14:58 +02:00
|
|
|
<mkdir dir="${build.dir.release}\${build.release.minecraft.version}\${build.release.mod.version}" />
|
|
|
|
<jar destfile="${build.dir.release}\${build.release.minecraft.version}\${build.release.mod.version}\ee3-universal-${build.release.mod.version}-${build_number.build_number}.jar">
|
|
|
|
<fileset dir="${build.dir.development}\mcp\src\minecraft\" includes="mcmod.info" />
|
2013-04-12 19:01:37 +02:00
|
|
|
<fileset dir="${build.dir.development}\mcp\reobf\minecraft" />
|
2013-04-19 00:48:21 +02:00
|
|
|
<fileset dir="${build.dir.development}\source\Equivalent-Exchange-3\resources" excludes="**/xcf/**" />
|
2012-10-26 16:45:27 +02:00
|
|
|
</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">
|
2013-04-18 22:14:58 +02:00
|
|
|
<!-- Prep for the build -->
|
2012-06-29 16:00:22 +02:00
|
|
|
<antcall target="clean" />
|
2013-04-18 22:14:58 +02:00
|
|
|
<antcall target="increment_build_number" />
|
|
|
|
<antcall target="prep" />
|
|
|
|
<antcall target="replace_tokens" />
|
2012-06-29 16:00:22 +02:00
|
|
|
<antcall target="recompile" />
|
|
|
|
<antcall target="reobfuscate" />
|
|
|
|
|
|
|
|
<!-- Build the jar -->
|
2013-04-12 19:01:37 +02:00
|
|
|
<mkdir dir="${build.dir.release}\${build.release.minecraft.version}\${build.release.mod.version}" />
|
|
|
|
<jar destfile="${build.dir.release}\${build.release.minecraft.version}\${build.release.mod.version}\ee3-universal-${build.release.mod.version}-${build_number.build_number}.jar">
|
|
|
|
<fileset dir="${build.dir.development}\mcp\src\minecraft\" includes="mcmod.info" />
|
|
|
|
<fileset dir="${build.dir.development}\mcp\reobf\minecraft" />
|
2013-04-19 00:48:21 +02:00
|
|
|
<fileset dir="${build.dir.development}\source\Equivalent-Exchange-3\resources" excludes="**/xcf/**" />
|
2012-06-29 16:00:22 +02:00
|
|
|
</jar>
|
|
|
|
|
2013-04-18 22:14:58 +02:00
|
|
|
<!-- Sign the finished jar -->
|
|
|
|
<antcall target="sign_jar" />
|
2013-04-08 02:29:57 +02:00
|
|
|
|
2012-06-29 16:00:22 +02:00
|
|
|
<!-- Clean up the MCP source now that we are done -->
|
|
|
|
<antcall target="clean" />
|
|
|
|
</target>
|
2013-04-12 16:18:24 +02:00
|
|
|
</project>
|