Added the BiomesOPlenty API to the build script

This commit is contained in:
Adubbz 2013-09-22 17:40:16 +10:00
parent 0e98cc375c
commit 1494c46ac0

View file

@ -13,12 +13,13 @@
<property name="src.dir" value="" /> <property name="src.dir" value="" />
<property name="build.dir" value="build" /> <property name="build.dir" value="build" />
<property name="download.dir" value="download" /> <property name="download.dir" value="download" />
<property name="jar.dir" value="dist" /> <property name="dist.dir" value="dist" />
<property name="forge.dir" value="${build.dir}/forge" /> <property name="forge.dir" value="${build.dir}/forge" />
<property name="fmp.dir" value="${build.dir}/fmp" /> <property name="fmp.dir" value="${build.dir}/fmp" />
<property name="mcp.dir" value="${forge.dir}/mcp" /> <property name="mcp.dir" value="${forge.dir}/mcp" />
<property name="mod.name" value="BiomesOPlenty-universal-${mc.version}-${mod.version}.${mod.build}.jar" /> <property name="mod.name" value="BiomesOPlenty-universal-${mc.version}-${mod.version}.${mod.build}.jar" />
<property name="api.name" value="BiomesOPlenty-api-${mc.version}-${mod.version}.${mod.build}.zip" />
<property name="forge.name" value="minecraftforge-src-${mc.version}-${forge.version}.zip" /> <property name="forge.name" value="minecraftforge-src-${mc.version}-${forge.version}.zip" />
<property name="fmp.name" value="ForgeMultipart-dev-${mc.version}-${fmp.version}.jar" /> <property name="fmp.name" value="ForgeMultipart-dev-${mc.version}-${fmp.version}.jar" />
@ -44,7 +45,7 @@
<!-- Make directories --> <!-- Make directories -->
<mkdir dir="${build.dir}" /> <mkdir dir="${build.dir}" />
<mkdir dir="${download.dir}" /> <mkdir dir="${download.dir}" />
<mkdir dir="${jar.dir}" /> <mkdir dir="${dist.dir}" />
<!-- Targets for downloading dependencies --> <!-- Targets for downloading dependencies -->
@ -191,15 +192,20 @@
<target name="package"> <target name="package">
<echo message="Building Jar" /> <echo message="Building Jar" />
<mkdir dir="${jar.dir}" /> <mkdir dir="${dist.dir}" />
<echo message="Packaging BiomesOPlenty" /> <echo message="Packaging BiomesOPlenty Universal" />
<jar destfile="${jar.dir}/${mod.name}" manifest="${mcp.dir}/reobf/resources/MANIFEST.MF"> <jar destfile="${dist.dir}/${mod.name}" manifest="${mcp.dir}/reobf/resources/MANIFEST.MF">
<fileset dir="${mcp.dir}/reobf/minecraft" includes="**/biomesoplenty/**" /> <fileset dir="${mcp.dir}/reobf/minecraft" includes="**/biomesoplenty/**" />
<fileset dir="${mcp.dir}/reobf/resources" excludes="MANIFEST.MF"> <fileset dir="${mcp.dir}/reobf/resources" excludes="MANIFEST.MF">
</fileset> </fileset>
</jar> </jar>
<echo message="Packaging BiomesOPlenty Api" />
<zip destfile="${dist.dir}/${api.name}">
<fileset dir="${mcp.dir}/src/minecraft" includes="**/biomesoplenty/api/**" />
</fileset>
</zip>
</target> </target>
<target name="build"> <target name="build">