Mekanism-tilera-Edition/build.xml

152 lines
4.6 KiB
XML
Raw Normal View History

2013-04-13 17:42:11 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2013-09-08 14:45:02 +02:00
<project name="Mekanism" default="build">
2013-04-13 17:42:11 +02:00
<property file="build.properties" />
<property environment="env" />
<property name="file.core" value="Mekanism-v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar"/>
<property name="file.generators" value="MekanismGenerators-v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar"/>
<property name="file.induction" value="MekanismInduction-v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar"/>
2013-04-13 17:42:11 +02:00
<property name="file.tools" value="MekanismTools-v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar"/>
<property name="file.mdk" value="MDK-v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.zip"/>
<target name="build">
2013-04-13 18:09:33 +02:00
<delete dir="coreContents"/>
<delete dir="generatorsContents"/>
<delete dir="inductionContents"/>
2013-04-13 18:09:33 +02:00
<delete dir="toolsContents"/>
<delete dir="mdkContents"/>
2013-04-13 18:43:31 +02:00
<delete dir="${dir.development}/forge"/>
2013-04-13 17:42:11 +02:00
<copy todir="${dir.development}">
2013-09-28 04:37:48 +02:00
<fileset dir="../Minecraft Forge Latest/"/>
2013-04-13 18:43:31 +02:00
</copy>
2013-10-24 17:55:33 +02:00
<get src="http://www.chickenbones.craftsaddle.org/Files/New_Versions/1.6.4/NotEnoughItems-dev%201.6.1.5_d1.jar"
2013-08-12 18:17:43 +02:00
dest="${dir.mcp}/lib/NEI-dev.jar"/>
2013-10-10 17:46:08 +02:00
2013-10-24 17:55:33 +02:00
<get src="http://www.chickenbones.craftsaddle.org/Files/New_Versions/1.6.4/CodeChickenCore-dev%200.9.0.7.jar"
2013-10-10 17:46:08 +02:00
dest = "${dir.mcp}/lib/CCC-dev.jar"/>
2013-08-12 18:17:43 +02:00
2013-06-29 00:22:41 +02:00
<copy todir="${dir.mcp}/src/minecraft">
2013-04-13 18:43:31 +02:00
2013-06-29 00:22:41 +02:00
<fileset dir="${dir.development}common">
2013-04-13 18:43:31 +02:00
<exclude name=".git/**"/>
<exclude name="**/*.xml"/>
</fileset>
2013-04-13 17:42:11 +02:00
</copy>
2013-04-13 18:09:33 +02:00
<mkdir dir="coreContents"/>
<mkdir dir="generatorsContents"/>
<mkdir dir="inductionContents"/>
2013-04-13 18:09:33 +02:00
<mkdir dir="toolsContents"/>
<mkdir dir="mdkContents"/>
2013-04-13 17:42:11 +02:00
2013-06-29 00:25:05 +02:00
<replace dir="${dir.mcp}/src/minecraft" token="@MAJOR@" value="${version.mod.major}"/>
<replace dir="${dir.mcp}/src/minecraft" token="@MINOR@" value="${version.mod.minor}"/>
<replace dir="${dir.mcp}/src/minecraft" token="@REVIS@" value="${version.mod.revis}"/>
<replace dir="${dir.mcp}/src/minecraft" token="@BUILD@" value="${env.BUILD_NUMBER}"/>
2013-04-13 17:42:11 +02:00
<exec dir="${dir.mcp}" executable="cmd" osfamily="windows">
<arg line="recompile.bat"/>
2013-04-13 17:42:11 +02:00
</exec>
<exec dir="${dir.mcp}" executable="cmd" osfamily="windows">
<arg line="reobfuscate_srg.bat"/>
2013-04-13 17:42:11 +02:00
</exec>
<exec dir="${dir.mcp}" executable="bash" osfamily="unix">
<arg line="recompile.sh"/>
2013-04-13 17:42:11 +02:00
</exec>
<exec dir="${dir.mcp}" executable="bash" osfamily="unix">
<arg line="reobfuscate_srg.sh"/>
2013-04-13 17:42:11 +02:00
</exec>
<copy todir="coreContents">
<fileset dir="${dir.mcp}/reobf/minecraft">
2013-04-13 18:00:54 +02:00
<exclude name="**/mekanism/generators/**"/>
2013-11-17 01:10:55 +01:00
<exclude name="**/mekanism/induction/**"/>
2013-04-13 18:00:54 +02:00
<exclude name="**/mekanism/tools/**"/>
2013-04-13 17:42:11 +02:00
</fileset>
2013-06-29 00:03:47 +02:00
<fileset dir="${dir.development}resources"/>
2013-04-13 17:42:11 +02:00
<fileset dir="${dir.development}etc/core"/>
2013-04-13 17:42:11 +02:00
</copy>
<copy todir="generatorsContents">
2013-04-13 18:49:43 +02:00
<fileset dir="${dir.mcp}/reobf/minecraft">
<include name = "**/mekanism/generators/**"/>
</fileset>
2013-04-13 17:42:11 +02:00
<fileset dir="${dir.development}etc/generators"/>
</copy>
<copy todir="inductionContents">
<fileset dir="${dir.mcp}/reobf/minecraft">
<include name = "**/mekanism/induction/**"/>
</fileset>
<fileset dir="${dir.development}etc/induction"/>
</copy>
2013-04-13 17:42:11 +02:00
<copy todir="toolsContents">
2013-04-13 18:49:43 +02:00
<fileset dir="${dir.mcp}/reobf/minecraft">
2013-04-20 02:49:02 +02:00
<include name = "**/mekanism/tools/**"/>
2013-04-13 18:49:43 +02:00
</fileset>
2013-04-13 17:42:11 +02:00
<fileset dir="${dir.development}etc/tools"/>
</copy>
<copy todir="mdkContents">
2013-06-29 00:03:47 +02:00
<fileset dir="${dir.development}common">
2013-04-13 18:00:54 +02:00
<include name = "**/mekanism/api/**"/>
2013-04-13 17:42:11 +02:00
</fileset>
</copy>
2013-07-27 17:40:16 +02:00
<!-- Artifacts -->
2013-04-13 17:42:11 +02:00
<jar destfile="output/${file.core}">
2013-04-13 18:05:05 +02:00
<fileset dir="coreContents"/>
2013-04-13 17:42:11 +02:00
</jar>
<jar destfile="output/${file.generators}">
2013-04-13 18:05:05 +02:00
<fileset dir="generatorsContents"/>
2013-04-13 17:42:11 +02:00
</jar>
<jar destfile="output/${file.induction}">
<fileset dir="inductionContents"/>
</jar>
2013-04-13 17:42:11 +02:00
<jar destfile="output/${file.tools}">
2013-04-13 18:05:05 +02:00
<fileset dir="toolsContents"/>
2013-04-13 17:42:11 +02:00
</jar>
<zip destfile="output/${file.mdk}">
2013-04-13 18:11:18 +02:00
<fileset dir="mdkContents"/>
2013-04-13 17:42:11 +02:00
</zip>
2013-07-27 17:40:16 +02:00
<!-- Latest Artifacts -->
<jar destfile="Mekanism.jar">
<fileset dir="coreContents"/>
</jar>
2013-04-13 17:42:11 +02:00
2013-07-27 17:40:16 +02:00
<jar destfile="Mekanism_Generators.jar">
<fileset dir="generatorsContents"/>
</jar>
<jar destfile="Mekanism_Induction.jar">
<fileset dir="inductionContents"/>
</jar>
2013-04-13 17:42:11 +02:00
2013-07-27 17:40:16 +02:00
<jar destfile="Mekanism_Tools.jar">
<fileset dir="toolsContents"/>
</jar>
<zip destfile="MDK.zip">
<fileset dir="mdkContents"/>
</zip>
<copy todir="output" file="build.properties" />
2013-04-13 17:42:11 +02:00
</target>
</project>