2013-09-03 07:54:41 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
|
|
|
<project name="CoreMachine" default="build">
|
|
|
|
|
|
|
|
<property file="build.properties" />
|
|
|
|
<property environment="env" />
|
2013-09-04 04:55:27 +02:00
|
|
|
<property name="file.core" value="Dark-CoreMachine_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
|
|
|
<property name="file.fm" value="Dark-FluidMechanics_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
2013-11-11 17:58:22 +01:00
|
|
|
<property name="file.al" value="Dark-AssemblyLine_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
|
|
|
<property name="file.ft" value="Dark-FarmTech_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
|
|
|
<property name="file.gs" value="Dark-GreaterSecurity_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
|
|
|
<property name="file.mm" value="Dark-MechanizedMining_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
|
|
|
<property name="file.all" value="DarkBoxSet_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.zip" />
|
2013-09-03 07:54:41 +02:00
|
|
|
|
|
|
|
<target name="build">
|
|
|
|
|
2013-09-03 08:41:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
<copy todir="${dir.development}">
|
|
|
|
<fileset dir="../Minecraft Forge Latest/" />
|
|
|
|
</copy>
|
2013-09-03 08:39:45 +02:00
|
|
|
<!-- Download other git repos -->
|
2013-09-07 02:50:33 +02:00
|
|
|
<exec dir="${dir.development}bin" executable="cmd" osfamily="windows">
|
2013-09-07 03:07:17 +02:00
|
|
|
<arg line="GitClone.bat" />
|
2013-09-03 08:39:45 +02:00
|
|
|
</exec>
|
2013-09-07 02:50:33 +02:00
|
|
|
<exec dir="${dir.development}bin" executable="bash" osfamily="unix">
|
2013-09-07 03:07:17 +02:00
|
|
|
<arg line="GitClone.sh" />
|
2013-09-03 08:39:45 +02:00
|
|
|
</exec>
|
2013-09-07 02:50:33 +02:00
|
|
|
<exec dir="${dir.development}bin" executable="cmd" osfamily="windows">
|
2013-09-07 03:07:17 +02:00
|
|
|
<arg line="GitChangeLog.bat" />
|
2013-09-07 02:30:59 +02:00
|
|
|
</exec>
|
2013-09-07 02:50:33 +02:00
|
|
|
<exec dir="${dir.development}bin" executable="bash" osfamily="unix">
|
2013-09-07 03:07:17 +02:00
|
|
|
<arg line="GitChangeLog.sh" />
|
2013-09-07 02:30:59 +02:00
|
|
|
</exec>
|
2013-09-03 07:54:41 +02:00
|
|
|
<copy todir="${dir.mcp}/src/minecraft">
|
|
|
|
|
|
|
|
<fileset dir="${dir.development}src">
|
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-12-03 13:57:51 +01:00
|
|
|
<fileset dir="${dir.development}Built-Broken-Lib">
|
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-09-03 08:39:45 +02:00
|
|
|
<fileset dir="${dir.development}APIs">
|
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-11-11 17:58:22 +01:00
|
|
|
<fileset dir="${dir.development}downloads/Assembly-Line/src">
|
2013-09-03 08:49:08 +02:00
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-09-07 02:50:33 +02:00
|
|
|
<fileset dir="${dir.development}downloads/FarmTech/src">
|
2013-09-03 08:49:08 +02:00
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-09-07 02:50:33 +02:00
|
|
|
<fileset dir="${dir.development}downloads/Fluid-Mechanics/src">
|
2013-09-03 08:49:08 +02:00
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-09-07 02:50:33 +02:00
|
|
|
<fileset dir="${dir.development}downloads/Greater-Security/src">
|
2013-09-03 08:49:08 +02:00
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-11-11 17:58:22 +01:00
|
|
|
<fileset dir="${dir.development}downloads/MechanizedMining/src">
|
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-09-03 07:54:41 +02:00
|
|
|
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<!-- Make all directories -->
|
|
|
|
<mkdir dir="output" />
|
|
|
|
|
2013-09-03 08:39:45 +02:00
|
|
|
|
2013-09-03 07:54:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
<!-- Replace version numbers -->
|
|
|
|
<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 compiled files into folders to be zipped -->
|
|
|
|
<copy todir="core">
|
2013-09-03 10:04:17 +02:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="dark/core/" />
|
2013-12-06 21:56:23 +01:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="dark/machines/" />
|
2013-11-11 17:58:22 +01:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="com/builtbroken/common/" />
|
2013-12-06 21:56:23 +01:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="dark/api/" />
|
2013-09-03 10:18:05 +02:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="buildcraft/" />
|
2013-11-11 17:58:22 +01:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="dan200/" />
|
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="ic2/" />
|
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="org/" />
|
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="themalexpansion/" />
|
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="universalelectricity/" />
|
|
|
|
<fileset dir="${dir.development}resources" excludes=".git/**" />
|
2013-09-03 07:54:41 +02:00
|
|
|
</copy>
|
|
|
|
<copy todir="fm">
|
2013-09-03 09:48:48 +02:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="dark/fluid/" />
|
2013-09-03 10:28:13 +02:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="dark/mech/" />
|
2013-11-11 17:58:22 +01:00
|
|
|
<fileset dir="${dir.development}downloads/Fluid-Mechanics/resources" excludes=".git/**" />
|
2013-09-03 07:54:41 +02:00
|
|
|
</copy>
|
|
|
|
<copy todir="al">
|
2013-09-03 09:48:48 +02:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="dark/assembly/" />
|
2013-11-11 17:58:22 +01:00
|
|
|
<fileset dir="${dir.development}downloads/Assembly-Line/resources" excludes=".git/**" />
|
2013-09-03 07:54:41 +02:00
|
|
|
</copy>
|
|
|
|
<copy todir="ft">
|
2013-10-01 04:17:15 +02:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="dark/farmtech/" />
|
2013-11-11 17:58:22 +01:00
|
|
|
<fileset dir="${dir.development}downloads/FarmTech/resources" excludes=".git/**" />
|
2013-09-03 07:54:41 +02:00
|
|
|
</copy>
|
|
|
|
<copy todir="gs">
|
2013-09-03 09:48:48 +02:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="dark/security/" />
|
2013-11-11 17:58:22 +01:00
|
|
|
<fileset dir="${dir.development}downloads/Greater-Security/resources" excludes=".git/**" />
|
|
|
|
</copy>
|
|
|
|
<copy todir="mm">
|
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" includes="dark/mining/" />
|
|
|
|
<fileset dir="${dir.development}downloads/MechanizedMining/resources" excludes=".git/**" />
|
2013-09-04 05:02:03 +02:00
|
|
|
</copy>
|
|
|
|
|
|
|
|
<copy todir="gs" file="LICENSE.txt" />
|
2013-11-11 17:58:22 +01:00
|
|
|
<copy todir="mm" file="LICENSE.txt" />
|
2013-09-04 05:02:03 +02:00
|
|
|
<copy todir="ft" file="LICENSE.txt" />
|
|
|
|
<copy todir="al" file="LICENSE.txt" />
|
|
|
|
<copy todir="fm" file="LICENSE.txt" />
|
|
|
|
<copy todir="core" file="LICENSE.txt" />
|
|
|
|
<copy todir="output" file="LICENSE.txt" />
|
|
|
|
<copy todir="output" file="build.properties" />
|
2013-09-03 07:54:41 +02:00
|
|
|
|
|
|
|
<!-- OUTPUT LATEST JAR AND ZIP FILES -->
|
2013-09-03 09:48:48 +02:00
|
|
|
<jar destfile="output/${file.core}">
|
2013-09-03 07:54:41 +02:00
|
|
|
<fileset dir="core" />
|
|
|
|
</jar>
|
2013-09-03 09:48:48 +02:00
|
|
|
<jar destfile="output/${file.fm}">
|
2013-09-03 07:54:41 +02:00
|
|
|
<fileset dir="fm" />
|
|
|
|
</jar>
|
2013-11-11 17:58:22 +01:00
|
|
|
<jar destfile="output/${file.mm}">
|
|
|
|
<fileset dir="mm" />
|
|
|
|
</jar>
|
2013-09-03 09:48:48 +02:00
|
|
|
<jar destfile="output/${file.al}">
|
2013-09-03 07:54:41 +02:00
|
|
|
<fileset dir="al" />
|
|
|
|
</jar>
|
2013-09-03 09:48:48 +02:00
|
|
|
<jar destfile="output/${file.ft}">
|
2013-09-03 07:54:41 +02:00
|
|
|
<fileset dir="ft" />
|
|
|
|
</jar>
|
2013-09-03 09:48:48 +02:00
|
|
|
<jar destfile="output/${file.gs}">
|
2013-09-03 07:54:41 +02:00
|
|
|
<fileset dir="gs" />
|
|
|
|
</jar>
|
2013-09-04 04:42:47 +02:00
|
|
|
<zip destfile="${file.all}">
|
2013-09-04 04:48:08 +02:00
|
|
|
<fileset dir="output/" />
|
2013-09-04 05:02:03 +02:00
|
|
|
</zip>
|
2013-09-03 07:54:41 +02:00
|
|
|
|
2013-09-04 04:42:47 +02:00
|
|
|
<copy todir="output" file="${file.all}" />
|
2013-09-03 07:54:41 +02:00
|
|
|
</target>
|
|
|
|
</project>
|