2013-08-02 02:20:14 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
2013-08-02 15:06:32 +02:00
|
|
|
<project name="Resonant Induction" default="build">
|
2013-08-02 02:20:14 +02:00
|
|
|
|
|
|
|
<property file="build.properties" />
|
|
|
|
<property environment="env" />
|
2013-08-02 15:06:32 +02:00
|
|
|
<property name="file.main" value="Resonant_Induction.jar" />
|
|
|
|
<property name="file.api" value="Resonant_Induction_API.zip" />
|
|
|
|
<property name="file.mainfile" value="Resonant_Induction_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
|
|
|
<property name="file.apifile" value="Resonant_Induction_API_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.zip" />
|
2013-08-02 02:20:14 +02:00
|
|
|
|
|
|
|
<target name="build">
|
|
|
|
|
|
|
|
<copy todir="${dir.development}">
|
|
|
|
<fileset dir="../Minecraft Forge Latest/" />
|
|
|
|
</copy>
|
2013-09-21 04:29:31 +02:00
|
|
|
|
2013-10-27 14:22:05 +01:00
|
|
|
<get src="http://www.chickenbones.craftsaddle.org/Files/New_Versions/1.6.4/NotEnoughItems-dev%201.6.1.5_d1.jar"
|
2013-09-21 04:29:31 +02:00
|
|
|
dest="${dir.mcp}/lib/NEI-dev.jar"/>
|
2013-10-27 14:22:05 +01:00
|
|
|
<get src="http://files.minecraftforge.net/CodeChickenLib/CodeChickenLib-dev-1.6.4-1.0.0.40.jar"
|
2013-09-22 05:46:23 +02:00
|
|
|
dest="${dir.mcp}/lib/CCL-dev.jar"/>
|
2013-10-27 14:22:05 +01:00
|
|
|
<get src="http://files.minecraftforge.net/ForgeMultipart/ForgeMultipart-dev-1.6.4-1.0.0.193.jar"
|
2013-09-21 04:29:31 +02:00
|
|
|
dest="${dir.mcp}/lib/FMP-dev.jar"/>
|
2013-08-02 02:20:14 +02:00
|
|
|
|
|
|
|
<copy todir="${dir.mcp}/src/minecraft">
|
|
|
|
<fileset dir="${dir.development}src">
|
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-12-19 14:22:18 +01:00
|
|
|
<fileset dir="${dir.development}Calclavia-Library/src">
|
2013-08-06 23:58:17 +02:00
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-08-02 02:20:14 +02:00
|
|
|
</copy>
|
|
|
|
|
|
|
|
<mkdir dir="output" />
|
|
|
|
|
|
|
|
<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="bash" osfamily="unix">
|
|
|
|
<arg line="recompile.sh" />
|
|
|
|
</exec>
|
2013-09-27 03:33:35 +02:00
|
|
|
|
|
|
|
<unzip src="${dir.mcp}/lib/FMP-dev.jar"
|
|
|
|
dest="${dir.mcp}/bin/minecraft">
|
|
|
|
<patternset>
|
|
|
|
<include name="codechicken/**"/>
|
|
|
|
</patternset>
|
|
|
|
</unzip>
|
|
|
|
|
|
|
|
<exec dir="${dir.mcp}" executable="cmd" osfamily="windows">
|
|
|
|
<arg line="reobfuscate_srg.bat" />
|
|
|
|
</exec>
|
2013-08-02 02:20:14 +02:00
|
|
|
<exec dir="${dir.mcp}" executable="bash" osfamily="unix">
|
|
|
|
<arg line="reobfuscate_srg.sh" />
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
<copy todir="JarContents">
|
2013-09-27 04:13:01 +02:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft">
|
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="codechicken/**"/>
|
|
|
|
</fileset>
|
2013-08-02 02:20:14 +02:00
|
|
|
|
|
|
|
<fileset dir="${dir.development}resources">
|
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.java"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
2013-08-06 03:16:53 +02:00
|
|
|
|
2013-08-02 02:20:14 +02:00
|
|
|
<copy todir="APIContents">
|
2013-08-06 03:16:53 +02:00
|
|
|
<fileset dir="${dir.development}src/resonantinduction/api" excludes=".git/**" />
|
|
|
|
</copy>
|
2013-08-02 02:20:14 +02:00
|
|
|
|
|
|
|
<jar destfile="output/${file.mainfile}">
|
|
|
|
<fileset dir="JarContents" />
|
2013-08-06 03:16:53 +02:00
|
|
|
</jar>
|
2013-08-02 02:20:14 +02:00
|
|
|
<zip destfile="output/${file.apifile}">
|
|
|
|
<fileset dir="APIContents" />
|
2013-08-06 03:16:53 +02:00
|
|
|
</zip>
|
2013-08-02 02:20:14 +02:00
|
|
|
|
|
|
|
<copy todir="output" file="build.properties" />
|
|
|
|
|
|
|
|
<!-- OUTPUT LATEST JAR AND ZIP FILES -->
|
|
|
|
<jar destfile="${file.main}">
|
|
|
|
<fileset dir="JarContents" />
|
2013-08-06 04:13:16 +02:00
|
|
|
</jar>
|
2013-12-19 14:22:18 +01:00
|
|
|
|
|
|
|
<!--
|
2013-08-02 02:20:14 +02:00
|
|
|
<zip destfile="${file.api}">
|
|
|
|
<fileset dir="APIContents" />
|
2013-12-19 14:22:18 +01:00
|
|
|
</zip>-->
|
2013-08-02 02:20:14 +02:00
|
|
|
</target>
|
2013-09-27 04:13:01 +02:00
|
|
|
</project>
|