adjusting build script for api's

This commit is contained in:
Robert Seifert 2013-04-21 02:50:01 -04:00
parent 36aedf1e77
commit 9d378b53c0

View file

@ -5,30 +5,46 @@
<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" />
<property name="download.dir" value="download"/>
<target name="build">
<delete dir="contents" />
<delete dir="build" />
<delete dir="${download.dir}" />
<delete dir="${dir.development}/forge" />
<copy todir="${dir.development}">
<fileset dir="../Minecraft Forge/" />
</copy>
<!-- Download necessary files -->
<target name="download-files" depends="download-Dark-Library"/>
<!-- Download forge (if it doesn't exist) -->
<target name="download-Dark-Library">
<get src="https://github.com/DarkGuardsman/Dark-Library/archive/master.zip" dest="${download.dir}" usetimestamp="True"/>
<unzip dest="${download.dir}/unzip/.." src="${download.dir}/Dark-Library-master.zip/Dark-Library-master/"/>
</target>
<copy todir="${dir.mcp}/src/minecraft">
<fileset dir="${dir.development}src">
<exclude name=".git/**"/>
<exclude name="**/*.xml"/>
</fileset>
<fileset dir="${download.dir}/unzip/Dark-Library-master/src/minecraft/">
<exclude name=".git/**"/>
<exclude name="**/*.xml"/>
</fileset>
<fileset dir="${dir.development}../Universal Electricity/src">
<exclude name=".git/**"/>
<exclude name="**/*.xml"/>
</fileset>
</copy>
<mkdir dir="contents" />
<mkdir dir="build" />
@ -67,6 +83,12 @@
<exclude name="**/*.java"/>
<exclude name="**/*.xml"/>
</fileset>
<fileset dir="${download.dir}/unzip/Dark-Library-master/resources">
<exclude name=".git/**"/>
<exclude name="**/*.java"/>
<exclude name="**/*.xml"/>
</fileset>
</copy>