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"/>
|
2013-11-16 19:04:06 +01:00
|
|
|
<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"/>
|
2013-11-16 19:04:06 +01:00
|
|
|
<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-12-01 07:11:47 +01:00
|
|
|
<get src="https://www.dropbox.com/s/0txj0orswr2ru5z/CodeChickenCore-dev-latest.jar?dl=1"
|
2013-10-10 17:46:08 +02:00
|
|
|
dest = "${dir.mcp}/lib/CCC-dev.jar"/>
|
2013-08-12 18:17:43 +02:00
|
|
|
|
2013-12-01 07:11:47 +01:00
|
|
|
<get src="https://www.dropbox.com/s/6lsq0qk00h38ktm/NotEnoughItems-dev-latest.jar?dl=1"
|
2013-12-01 07:01:44 +01:00
|
|
|
dest="${dir.mcp}/lib/NEI-dev.jar"/>
|
2013-12-01 08:32:46 +01:00
|
|
|
|
|
|
|
<get src="https://www.dropbox.com/s/qedjhg8gf1fuk8t/CodeChickenLib-dev-latest.jar?dl=1"
|
|
|
|
dest="${dir.mcp}/lib/CCLib-dev.jar"/>
|
2013-12-01 08:29:59 +01:00
|
|
|
|
|
|
|
<get src="http://files.minecraftforge.net/ForgeMultipart/ForgeMultipart-dev-1.6.4-1.0.0.212.jar"
|
|
|
|
dest="${dir.mcp}/lib/ForgeMultipart-dev.jar"/>
|
2013-12-01 07:01:44 +01: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"/>
|
2013-11-16 19:04:06 +01:00
|
|
|
<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">
|
2013-04-20 00:03:59 +02:00
|
|
|
<arg line="recompile.bat"/>
|
2013-04-13 17:42:11 +02:00
|
|
|
</exec>
|
|
|
|
<exec dir="${dir.mcp}" executable="cmd" osfamily="windows">
|
2013-04-20 00:03:59 +02:00
|
|
|
<arg line="reobfuscate_srg.bat"/>
|
2013-04-13 17:42:11 +02:00
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec dir="${dir.mcp}" executable="bash" osfamily="unix">
|
2013-04-20 00:03:59 +02:00
|
|
|
<arg line="recompile.sh"/>
|
2013-04-13 17:42:11 +02:00
|
|
|
</exec>
|
|
|
|
<exec dir="${dir.mcp}" executable="bash" osfamily="unix">
|
2013-04-20 00:03:59 +02:00
|
|
|
<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
|
|
|
|
2013-04-20 00:03:59 +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>
|
2013-11-16 19:04:06 +01:00
|
|
|
|
|
|
|
<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>
|
2013-11-16 19:04:06 +01:00
|
|
|
|
|
|
|
<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>
|
2013-11-16 19:04:06 +01:00
|
|
|
|
|
|
|
<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>
|
2013-11-17 12:35:14 +01:00
|
|
|
|
|
|
|
<copy todir="output" file="build.properties" />
|
2013-04-13 17:42:11 +02:00
|
|
|
</target>
|
2013-07-27 17:24:21 +02:00
|
|
|
</project>
|