Mekanism-tilera-Edition/build.xml

124 lines
3.6 KiB
XML
Raw Normal View History

2013-04-13 17:42:11 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
<project name="ElectricExpansion" default="build">
<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.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="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}">
<fileset dir="../Minecraft Forge Latest/"/>
2013-04-13 18:43:31 +02:00
</copy>
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="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/**"/>
<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="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.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-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-04-13 17:42:11 +02:00
</target>
</project>