Mekanism-tilera-Edition/build.xml

102 lines
3.2 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 17:42:11 +02:00
<delete dir="${dir.development}/forge" />
<copy todir="${dir.development}">
<fileset dir="../NEI/" />
</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
<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}" />
<exec dir="${dir.mcp}" executable="cmd" osfamily="windows">
<arg line="recompile.bat" />
</exec>
<exec dir="${dir.mcp}" executable="cmd" osfamily="windows">
<arg line="reobfuscate_srg.bat" />
</exec>
<exec dir="${dir.mcp}" executable="bash" osfamily="unix">
<arg line="recompile.sh" />
</exec>
<exec dir="${dir.mcp}" executable="bash" osfamily="unix">
<arg line="reobfuscate_srg.sh" />
</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>
<fileset dir="${dir.development}bin/minecraft"/>
2013-04-13 17:57:09 +02:00
<fileset dir="${dir.development}etc/core">
</fileset>
2013-04-13 17:42:11 +02:00
</copy>
<copy todir="generatorsContents">
2013-04-13 18:19:06 +02:00
<fileset dir="${dir.mcp}reobf/minecraft" includes "**/mekanism/generators/**"/>
2013-04-13 17:42:11 +02:00
<fileset dir="${dir.development}etc/generators"/>
</copy>
<copy todir="toolsContents">
2013-04-13 18:19:06 +02:00
<fileset dir="${dir.mcp}reobf/minecraft" includes "**/mekanism/tools/**"/>
2013-04-13 17:42:11 +02:00
<fileset dir="${dir.development}etc/tools"/>
</copy>
<copy todir="mdkContents">
2013-04-13 17:57:09 +02:00
<fileset dir="${dir.development}src/minecraft">
2013-04-13 18:00:54 +02:00
<include name = "**/mekanism/api/**"/>
2013-04-13 17:42:11 +02:00
</fileset>
</copy>
<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>
<echo file="${env.JENKINS_HOME}/jobs/${env.JOB_NAME}/info.txt" append="true" >
@ ${env.BUILD_NUMBER} ${version.minecraft} ${file.core} ${file.generators} ${file.tools} ${file.mdk}</echo>
<copy todir="output" file="build.properties"/>
</target>
</project>