2013-04-10 09:44:32 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2013-04-11 08:15:29 +02:00
|
|
|
|
|
|
|
<project name="Fluid%20Mechanics" default="build">
|
2013-04-10 09:44:32 +02:00
|
|
|
|
|
|
|
<property file="build.properties" />
|
|
|
|
<property environment="env" />
|
|
|
|
<property name="file.EEjar" value="FluidMechanics_v${version.mod.major}.${version.mod.minor}.${version.mod.revis}.${env.BUILD_NUMBER}.jar" />
|
2013-04-21 08:50:01 +02:00
|
|
|
|
2013-05-02 09:27:14 +02:00
|
|
|
<target name="build">
|
2013-05-02 10:48:43 +02:00
|
|
|
<copy todir="${dir.development}">
|
|
|
|
<fileset dir="../Minecraft Forge/" />
|
|
|
|
</copy>
|
|
|
|
|
2013-04-10 09:44:32 +02:00
|
|
|
<copy todir="${dir.mcp}/src/minecraft">
|
2013-05-04 08:36:40 +02:00
|
|
|
<fileset dir="${dir.development}src/minecraft/">
|
2013-04-10 09:44:32 +02:00
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-06-14 18:45:24 +02:00
|
|
|
<fileset dir="${dir.development}API-Bank/">
|
2013-04-21 08:50:01 +02:00
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-05-02 09:27:14 +02:00
|
|
|
<fileset dir="${dir.development}Dark-Library/src/minecraft/">
|
2013-04-10 09:44:32 +02:00
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
2013-04-21 08:50:01 +02:00
|
|
|
|
|
|
|
|
2013-04-10 09:44:32 +02:00
|
|
|
<mkdir dir="contents" />
|
|
|
|
<mkdir dir="build" />
|
2013-04-11 08:10:27 +02:00
|
|
|
|
2013-04-10 09:44:32 +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}" />
|
|
|
|
|
|
|
|
<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>
|
2013-04-11 08:10:27 +02:00
|
|
|
|
2013-04-10 09:44:32 +02:00
|
|
|
<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 todir="contents">
|
|
|
|
<fileset dir="${dir.mcp}/reobf/minecraft" excludes=".git/**">
|
|
|
|
<exclude name="**/BCLoader.class"/>
|
|
|
|
</fileset>
|
2013-04-11 08:10:27 +02:00
|
|
|
|
2013-04-10 09:44:32 +02:00
|
|
|
<fileset dir="${dir.development}resources">
|
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.java"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-04-21 08:50:01 +02:00
|
|
|
|
2013-05-04 07:48:20 +02:00
|
|
|
<fileset dir="${dir.development}Dark-Library/resources">
|
2013-04-21 08:50:01 +02:00
|
|
|
<exclude name=".git/**"/>
|
|
|
|
<exclude name="**/*.java"/>
|
|
|
|
<exclude name="**/*.xml"/>
|
|
|
|
</fileset>
|
2013-04-10 09:44:32 +02:00
|
|
|
</copy>
|
|
|
|
|
|
|
|
<jar destfile="output/${file.EEjar}">
|
|
|
|
<fileset dir="contents" />
|
|
|
|
</jar>
|
2013-04-11 08:10:27 +02:00
|
|
|
|
2013-04-10 09:44:32 +02:00
|
|
|
<echo file="${env.JENKINS_HOME}/jobs/${env.JOB_NAME}/info.txt" append="true" >
|
|
|
|
@ ${env.BUILD_NUMBER} ${version.minecraft} ${file.EEjar}</echo>
|
2013-04-11 08:10:27 +02:00
|
|
|
|
2013-04-10 09:44:32 +02:00
|
|
|
<copy todir="output" file="build.properties" />
|
|
|
|
</target>
|
2013-04-11 08:10:27 +02:00
|
|
|
</project>
|