2013-08-01 20:20:14 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
2013-08-02 09:06:32 -04:00
|
|
|
<project name="Resonant Induction" default="build">
|
2013-08-01 20:20:14 -04:00
|
|
|
|
|
|
|
<property file="build.properties" />
|
|
|
|
<property environment="env" />
|
2013-12-30 13:25:03 +08: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-01 20:20:14 -04:00
|
|
|
|
|
|
|
<target name="build">
|
|
|
|
<copy todir="${dir.development}">
|
2013-12-31 12:24:50 +08:00
|
|
|
<fileset dir="../Minecraft Forge/" />
|
2013-08-01 20:20:14 -04:00
|
|
|
</copy>
|
2013-12-30 21:20:28 +08:00
|
|
|
|
2013-12-23 17:08:52 +08:00
|
|
|
<get src="http://files.minecraftforge.net/CodeChickenLib/CodeChickenLib-dev-1.6.4-1.0.0.49.jar"
|
2013-09-22 11:46:23 +08:00
|
|
|
dest="${dir.mcp}/lib/CCL-dev.jar"/>
|
2013-12-31 02:25:31 +08:00
|
|
|
<get src="http://files.minecraftforge.net/ForgeMultipart/ForgeMultipart-dev-1.6.4-1.0.0.231.jar"
|
2013-09-21 10:29:31 +08:00
|
|
|
dest="${dir.mcp}/lib/FMP-dev.jar"/>
|
2013-08-01 20:20:14 -04:00
|
|
|
|
|
|
|
<copy todir="${dir.mcp}/src/minecraft">
|
2013-12-30 21:20:28 +08:00
|
|
|
<fileset dir="${dir.development}src/main/java/">
|
2013-08-01 20:20:14 -04:00
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-12-30 21:20:28 +08:00
|
|
|
<fileset dir="${dir.development}Calclavia-Core/src/main/java/">
|
2013-12-23 17:30:43 +08:00
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-12-23 22:07:39 +08:00
|
|
|
<fileset dir="${dir.development}Universal-Electricity/src/main/java/">
|
2013-08-06 17:58:17 -04:00
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-08-01 20:20:14 -04:00
|
|
|
</copy>
|
|
|
|
|
|
|
|
<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 02:33:35 +01: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-01 20:20:14 -04:00
|
|
|
<exec dir="${dir.mcp}" executable="bash" osfamily="unix">
|
|
|
|
<arg line="reobfuscate_srg.sh" />
|
|
|
|
</exec>
|
2013-12-30 21:20:28 +08:00
|
|
|
|
|
|
|
<copy todir="ModContents">
|
2013-09-27 03:13:01 +01:00
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft">
|
2013-12-25 23:47:16 +08:00
|
|
|
<include name="resonantinduction/**"/>
|
2013-09-27 03:13:01 +01:00
|
|
|
</fileset>
|
2013-12-30 21:20:28 +08:00
|
|
|
|
|
|
|
<!-- Copy all resources -->
|
|
|
|
<fileset dir="${dir.development}src/main/resources">
|
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.java"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-08-01 20:20:14 -04:00
|
|
|
</copy>
|
2013-08-05 21:16:53 -04:00
|
|
|
|
2013-08-01 20:20:14 -04:00
|
|
|
<copy todir="APIContents">
|
2013-12-30 23:09:15 +08:00
|
|
|
<fileset dir="${dir.development}src/main/java/resonantinduction/api" excludes=".git/**" />
|
2013-08-05 21:16:53 -04:00
|
|
|
</copy>
|
2013-08-01 20:20:14 -04:00
|
|
|
|
|
|
|
<jar destfile="output/${file.mainfile}">
|
2013-12-30 21:20:28 +08:00
|
|
|
<fileset dir="ModContents" />
|
2013-08-05 21:16:53 -04:00
|
|
|
</jar>
|
2013-08-01 20:20:14 -04:00
|
|
|
<zip destfile="output/${file.apifile}">
|
|
|
|
<fileset dir="APIContents" />
|
2013-08-05 21:16:53 -04:00
|
|
|
</zip>
|
2013-08-01 20:20:14 -04:00
|
|
|
|
|
|
|
<copy todir="output" file="build.properties" />
|
|
|
|
|
|
|
|
<!-- OUTPUT LATEST JAR AND ZIP FILES -->
|
|
|
|
<jar destfile="${file.main}">
|
2013-12-30 21:20:28 +08:00
|
|
|
<fileset dir="ModContents" />
|
2013-08-05 22:13:16 -04:00
|
|
|
</jar>
|
2013-12-19 21:22:18 +08:00
|
|
|
|
|
|
|
<!--
|
2013-08-01 20:20:14 -04:00
|
|
|
<zip destfile="${file.api}">
|
|
|
|
<fileset dir="APIContents" />
|
2013-12-19 21:22:18 +08:00
|
|
|
</zip>-->
|
2013-08-01 20:20:14 -04:00
|
|
|
</target>
|
2013-09-27 03:13:01 +01:00
|
|
|
</project>
|