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}">
|
2013-04-13 18:43:31 +02:00
|
|
|
<fileset dir="../NEI/"/>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<copy todir="${dir.mcp}/src/minecraft">
|
|
|
|
|
|
|
|
<fileset dir="${dir.development}src">
|
|
|
|
<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-04-13 18:23:31 +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/**"/>
|
|
|
|
<exclude name="**/mekanism/tools/**"/>
|
2013-04-13 17:42:11 +02:00
|
|
|
</fileset>
|
|
|
|
|
|
|
|
<fileset dir="${dir.development}bin/minecraft"/>
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
<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-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>
|
|
|
|
|
2013-04-20 00:03:59 +02:00
|
|
|
<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>
|
2013-04-13 17:42:11 +02:00
|
|
|
|
|
|
|
<copy todir="output" file="build.properties"/>
|
|
|
|
</target>
|
|
|
|
</project>
|