equivalent-exchange-3/build.xml
2012-07-04 15:56:15 -04:00

92 lines
No EOL
4.4 KiB
XML

<?xml version="1.0" ?>
<project name="Equivalent Exchange 3">
<property file="build.properties" />
<target name="clean">
<delete file="${dir.development}\mcp\src\minecraft\mod_EE3.info" />
<delete file="${dir.development}\mcp\src\minecraft\net\minecraft\src\mod_EE3.java" />
<delete dir="${dir.development}\mcp\src\minecraft\ee3" />
<delete dir="${dir.development}\mcp\src\minecraft\codechicken" />
<delete file="${dir.development}\mcp\src\minecraft_server\mod_EE3.info" />
<delete file="${dir.development}\mcp\src\minecraft_server\net\minecraft\src\mod_EE3.java" />
<delete file="${dir.development}\mcp\src\minecraft_server\net\minecraft\src\EnumRarity.java" />
<delete dir="${dir.development}\mcp\src\minecraft_server\ee3" />
</target>
<target name="integrate-nei">
<copy todir="${dir.development}\mcp\src\minecraft" overwrite="true">
<fileset dir="${dir.development}\source\CodeChickenCore\Client\" />
<fileset dir="${dir.development}\source\CodeChickenCore\Common\" />
</copy>
<copy todir="${dir.development}\mcp\src\minecraft_server" overwrite="true">
<fileset dir="${dir.development}\source\CodeChickenCore\Server\" />
<fileset dir="${dir.development}\source\CodeChickenCore\Common\" />
</copy>
<copy todir="${dir.development}\mcp\src\minecraft" overwrite="true">
<fileset dir="${dir.development}\source\NEI\Client\" />
<fileset dir="${dir.development}\source\NEI\Common\" />
</copy>
<copy todir="${dir.development}\mcp\src\minecraft_server" overwrite="true">
<fileset dir="${dir.development}\source\NEI\Server\" />
<fileset dir="${dir.development}\source\NEI\Common\" />
</copy>
</target>
<target name="build">
<copy todir="${dir.development}\mcp\src\minecraft">
<fileset dir="${dir.development}\source\Equivalent-Exchange-3\ee3_client\" />
<fileset dir="${dir.development}\source\Equivalent-Exchange-3\ee3_common\" />
</copy>
<copy todir="${dir.development}\mcp\src\minecraft_server">
<fileset dir="${dir.development}\source\Equivalent-Exchange-3\ee3_server\" />
<fileset dir="${dir.development}\source\Equivalent-Exchange-3\ee3_common\" />
</copy>
</target>
<target name="recompile">
<exec dir="${dir.development}\mcp" executable="cmd" os="Windows 7">
<arg line="/c recompile.bat" />
</exec>
</target>
<target name="reobfuscate">
<exec dir="${dir.development}\mcp" executable="cmd" os="Windows 7">
<arg line="/c reobfuscate.bat" />
</exec>
</target>
<target name="release">
<!-- Prep for the release -->
<antcall target="clean" />
<antcall target="build" />
<antcall target="recompile" />
<antcall target="reobfuscate" />
<!-- Update the mod_*.info file for release -->
<copy file="${dir.development}\source\Equivalent-Exchange-3\ee3_common\mod_EE3.info" todir="${dir.development}\releases\" />
<move file="${dir.development}\releases\mod_EE3.info" tofile="${dir.development}\releases\mcmod.info" />
<!-- Build the jar -->
<jar destfile="${dir.development}\releases\ee3-client-v${release.version}.jar">
<fileset dir="${dir.development}\releases\" includes="mcmod.info" />
<fileset dir="${dir.development}\mcp\reobf\minecraft" />
<fileset dir="${dir.development}\source\Equivalent-Exchange-3\resources" />
</jar>
<jar destfile="${dir.development}\releases\ee3-server-v${release.version}.jar" basedir="${dir.development}\mcp\reobf\minecraft_server" />
<!-- Put a copy in Sengir's DB share -->
<mkdir dir="${dir.dropbox.mod.share}\${release.minecraft.version}\${release.version}" />
<copy file="${dir.development}\releases\ee3-client-v${release.version}.jar" todir="${dir.dropbox.mod.share}\${release.minecraft.version}\${release.version}" />
<copy file="${dir.development}\releases\ee3-server-v${release.version}.jar" todir="${dir.dropbox.mod.share}\${release.minecraft.version}\${release.version}" />
<!-- Put a copy in my public DB share -->
<mkdir dir="${dir.dropbox.pahimar}\${release.minecraft.version}\${release.version}" />
<move file="${dir.development}\releases\ee3-client-v${release.version}.jar" todir="${dir.dropbox.pahimar}\${release.minecraft.version}\${release.version}" />
<move file="${dir.development}\releases\ee3-server-v${release.version}.jar" todir="${dir.dropbox.pahimar}\${release.minecraft.version}\${release.version}" />
<!-- Clean up the MCP source now that we are done -->
<antcall target="clean" />
</target>
</project>