electrodynamics/build.xml

100 lines
3.3 KiB
XML
Raw Normal View History

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-12-30 06:25:03 +01: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}">
2013-12-31 05:24:50 +01:00
<fileset dir="../Minecraft Forge/" />
2013-08-02 02:20:14 +02:00
</copy>
2013-12-30 14:20:28 +01:00
<get src="http://files.minecraftforge.net/CodeChickenLib/CodeChickenLib-dev-1.6.4-1.0.0.49.jar"
2013-09-22 05:46:23 +02:00
dest="${dir.mcp}/lib/CCL-dev.jar"/>
2013-12-30 19:25:31 +01:00
<get src="http://files.minecraftforge.net/ForgeMultipart/ForgeMultipart-dev-1.6.4-1.0.0.231.jar"
dest="${dir.mcp}/lib/FMP-dev.jar"/>
2013-08-02 02:20:14 +02:00
<copy todir="${dir.mcp}/src/minecraft">
2013-12-30 14:20:28 +01:00
<fileset dir="${dir.development}src/main/java/">
2013-08-02 02:20:14 +02:00
<exclude name=".git/**"/>
<exclude name="**/*.xml"/>
</fileset>
2013-12-30 14:20:28 +01:00
<fileset dir="${dir.development}Calclavia-Core/src/main/java/">
2013-12-23 10:30:43 +01:00
<exclude name=".git/**"/>
<exclude name="**/*.xml"/>
</fileset>
2013-12-23 15:07:39 +01:00
<fileset dir="${dir.development}Universal-Electricity/src/main/java/">
2013-08-06 23:58:17 +02:00
<exclude name=".git/**"/>
<exclude name="**/*.xml"/>
</fileset>
2013-08-02 02:20:14 +02: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 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>
2013-12-30 14:20:28 +01:00
<copy todir="ModContents">
<fileset dir="${dir.mcp}/reobf/minecraft">
<include name="resonantinduction/**"/>
</fileset>
2013-12-30 14:20:28 +01:00
<!-- Copy all resources -->
<fileset dir="${dir.development}src/main/resources">
<exclude name=".git/**"/>
<exclude name="**/*.java"/>
<exclude name="**/*.xml"/>
</fileset>
2013-08-02 02:20:14 +02:00
</copy>
2013-08-06 03:16:53 +02:00
2013-08-02 02:20:14 +02:00
<copy todir="APIContents">
2013-12-30 16:09:15 +01:00
<fileset dir="${dir.development}src/main/java/resonantinduction/api" excludes=".git/**" />
2013-08-06 03:16:53 +02:00
</copy>
2013-08-02 02:20:14 +02:00
<jar destfile="output/${file.mainfile}">
2013-12-30 14:20:28 +01:00
<fileset dir="ModContents" />
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}">
2013-12-30 14:20:28 +01:00
<fileset dir="ModContents" />
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>
</project>