2013-04-21 06:49:24 +02:00
|
|
|
<project name="ModularPowersuits" default="install" basedir=".">
|
2013-01-25 07:57:55 +01:00
|
|
|
|
2013-04-24 07:44:54 +02:00
|
|
|
<property environment="env"/>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Versions -->
|
2013-08-04 00:47:33 +02:00
|
|
|
<property name="build.ver" value="0.8.0"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<property name="fullversion" value="${build.ver}-${env.BUILD_NUMBER}"/>
|
2013-05-09 08:24:05 +02:00
|
|
|
<property name="scala.version" value="2.10.1"/>
|
|
|
|
|
2013-08-04 00:47:33 +02:00
|
|
|
<property name="mcp.version" value="805"/>
|
|
|
|
<property name="minecraft.version" value="1.6.2"/>
|
2013-09-05 07:27:03 +02:00
|
|
|
<property name="forgemajor.version" value="9.10.1"/>
|
2013-09-07 00:19:34 +02:00
|
|
|
<property name="forgebuild" value="856"/>
|
2013-05-09 08:24:05 +02:00
|
|
|
|
|
|
|
<property name="forge.version" value="${minecraft.version}-${forgemajor.version}.${forgebuild}"/>
|
|
|
|
<property name="forgeant.version" value="${forgemajor.version}.${forgebuild}"/>
|
|
|
|
|
2013-08-07 00:51:05 +02:00
|
|
|
<property name="ic2api.version" value="1.118.401-lf"/>
|
2013-08-10 21:44:48 +02:00
|
|
|
<property name="ueapi.version" value="2.1.0.153"/>
|
2013-08-04 00:47:33 +02:00
|
|
|
<property name="asapi.version" value="0.7.0.114"/>
|
2013-08-10 21:44:48 +02:00
|
|
|
<property name="icbmapi.version" value="1.3.2.216"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<property name="thermexapi.version" value="2.3.0b"/>
|
2013-08-10 22:11:57 +02:00
|
|
|
<property name="galacticraftapi.version" value="2"/>
|
2013-04-30 01:49:23 +02:00
|
|
|
<property name="mfrapi.version" value="2.5.2B2-642"/>
|
2013-08-31 13:56:40 +02:00
|
|
|
<property name="forestryapi.version" value="2.3.0.1"/>
|
2013-08-31 13:59:33 +02:00
|
|
|
<property name="thaumcraftapi.version" value="0.0.5-3.0.4b"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
|
|
|
|
<!-- Directories -->
|
|
|
|
<property name="download.dir" value="downloads"/>
|
2013-08-10 22:16:45 +02:00
|
|
|
<property name="ue.download.dir" value="${download.dir}/ue/universalelectricity"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<property name="src.dir" value="src"/>
|
|
|
|
<property name="lib.dir" value="${src.dir}/lib"/>
|
2013-08-07 05:26:32 +02:00
|
|
|
<property name="build.dir" value="build/${minecraft.version}"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<property name="classes.dir" value="${build.dir}/packaging"/>
|
|
|
|
<property name="forge.dir" value="${build.dir}/forge"/>
|
2013-08-07 05:27:42 +02:00
|
|
|
<property name="dist.dir" value="dist"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<property name="mcp.dir" value="${forge.dir}/mcp"/>
|
|
|
|
<property name="mcplib.dir" value="${mcp.dir}/lib"/>
|
|
|
|
<property name="mcpsrc.dir" value="${mcp.dir}/src/minecraft"/>
|
2013-08-07 01:10:45 +02:00
|
|
|
<property name="resources.dir" value="assets/powersuits"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
|
|
|
|
<!-- URLs -->
|
|
|
|
<property name="forge.url"
|
|
|
|
value="http://files.minecraftforge.net/minecraftforge/minecraftforge-src-${forge.version}.zip"/>
|
2013-09-02 22:38:05 +02:00
|
|
|
<property name="apisource.url" value="http://machinemuse.minecraftforge.net"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
<!-- Name -->
|
|
|
|
<property name="package.meta-inf" value="META-INF"/>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Version Checking -->
|
|
|
|
|
|
|
|
<property file="${forge.dir}/forgeversion.properties"/>
|
|
|
|
<condition property="forge-already-installed">
|
|
|
|
<equals arg1="${forge.build.number}" arg2="${forgebuild}"/>
|
|
|
|
</condition>
|
|
|
|
<available property="forge-exists" file="${download.dir}/minecraftforge-src-${forge.version}.zip"/>
|
2013-08-07 19:29:17 +02:00
|
|
|
<!--<available property="already-compiled" file="${classes.dir}/net/machinemuse"/>-->
|
2013-04-24 07:44:54 +02:00
|
|
|
|
|
|
|
<mkdir dir="${download.dir}"/>
|
2013-08-07 19:24:56 +02:00
|
|
|
<mkdir dir="${dist.dir}"/>
|
2013-08-07 05:32:48 +02:00
|
|
|
<mkdir dir="build"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<mkdir dir="${build.dir}"/>
|
|
|
|
|
|
|
|
|
|
|
|
<condition property="should-download-ant-contrib">
|
|
|
|
<or>
|
|
|
|
<available file="${download.dir}/ant-contrib/ant-contrib-1.0b3.jar"/>
|
|
|
|
<available file="${download.dir}/minecraftforge-src-${forge.version}.zip"/>
|
|
|
|
</or>
|
|
|
|
</condition>
|
|
|
|
|
2013-09-02 22:38:05 +02:00
|
|
|
<macrodef name="get-api">
|
|
|
|
<attribute name="filename"/>
|
|
|
|
<attribute name="into"/>
|
|
|
|
<sequential>
|
2013-09-02 22:39:55 +02:00
|
|
|
<!--<if>-->
|
|
|
|
<!--<available file="${download.dir}/@{filename}"/>-->
|
2013-09-05 07:36:59 +02:00
|
|
|
<!--<then>-->
|
|
|
|
<echo message="Downloading @{filename}... "/>
|
|
|
|
<get src="${apisource.url}/@{filename}" dest="${download.dir}/@{filename}"/>
|
|
|
|
<!--</then>-->
|
2013-09-02 22:39:55 +02:00
|
|
|
<!--</if>-->
|
2013-09-02 22:38:05 +02:00
|
|
|
|
|
|
|
<echo message="Extracting @{filename}... "/>
|
|
|
|
<mkdir dir="@{into}"/>
|
|
|
|
<unzip src="${download.dir}/@{filename}" dest="@{into}"/>
|
|
|
|
</sequential>
|
|
|
|
</macrodef>
|
2013-04-24 07:44:54 +02:00
|
|
|
|
|
|
|
<!-- Dependencies -->
|
2013-09-02 22:38:05 +02:00
|
|
|
<target name="extract-apis" depends="setup-forge">
|
|
|
|
<get-api filename="industrialcraft-2-api_${ic2api.version}.zip" into="${download.dir}"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/ic2/api/energy/tile"/>
|
2013-04-25 14:19:45 +02:00
|
|
|
<move todir="${mcpsrc.dir}/ic2/api/">
|
|
|
|
<fileset dir="${download.dir}/ic2/api/recipe"/>
|
|
|
|
</move>
|
|
|
|
|
|
|
|
<move file="${download.dir}/ic2/api/item/ICustomElectricItem.java" todir="${mcpsrc.dir}/ic2/api/"/>
|
2013-06-21 21:04:55 +02:00
|
|
|
<move file="${download.dir}/ic2/api/item/ISpecialElectricItem.java" todir="${mcpsrc.dir}/ic2/api/"/>
|
|
|
|
<move file="${download.dir}/ic2/api/item/IElectricItemManager.java" todir="${mcpsrc.dir}/ic2/api/"/>
|
2013-04-25 14:19:45 +02:00
|
|
|
<move file="${download.dir}/ic2/api/item/IElectricItem.java" todir="${mcpsrc.dir}/ic2/api/"/>
|
|
|
|
<move file="${download.dir}/ic2/api/item/ElectricItem.java" todir="${mcpsrc.dir}/ic2/api/"/>
|
|
|
|
<move file="${download.dir}/ic2/api/item/Items.java" todir="${mcpsrc.dir}/ic2/api/"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<move file="${download.dir}/ic2/api/Direction.java" todir="${mcpsrc.dir}/ic2/api/"/>
|
2013-04-25 14:19:45 +02:00
|
|
|
<move file="${download.dir}/ic2/api/tile/IWrenchable.java" todir="${mcpsrc.dir}/ic2/api/"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<move todir="${mcpsrc.dir}/ic2/api/energy/tile/">
|
|
|
|
<fileset dir="${download.dir}/ic2/api/energy/tile/"/>
|
2013-04-25 13:58:36 +02:00
|
|
|
</move>
|
2013-01-25 08:04:08 +01:00
|
|
|
|
2013-09-02 22:38:05 +02:00
|
|
|
<get-api filename="UniversalElectricity_API_v${ueapi.version}.zip" into="${download.dir}/ue"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/universalelectricity/core/"/>
|
|
|
|
<mkdir dir="${mcpsrc.dir}/universalelectricity/prefab/implement/"/>
|
|
|
|
<move todir="${mcpsrc.dir}/universalelectricity/core/">
|
|
|
|
<fileset dir="${ue.download.dir}/core/"/>
|
|
|
|
</move>
|
|
|
|
|
2013-09-02 22:38:05 +02:00
|
|
|
<get-api filename="ICBM_API_v${icbmapi.version}.zip" into="${download.dir}/ue"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/icbm/api/explosion"/>
|
2013-08-10 22:21:38 +02:00
|
|
|
<move file="${download.dir}/ue/icbm/api/explosion/IExplosion.java"
|
2013-04-24 07:44:54 +02:00
|
|
|
todir="${mcpsrc.dir}/icbm/api/explosion/"/>
|
2013-08-10 22:21:38 +02:00
|
|
|
<move file="${download.dir}/ue/icbm/api/explosion/IEMPItem.java"
|
2013-04-24 07:44:54 +02:00
|
|
|
todir="${mcpsrc.dir}/icbm/api/explosion/"/>
|
|
|
|
|
2013-09-02 22:38:05 +02:00
|
|
|
<get-api filename="Atomic_Science_API_v${asapi.version}.zip" into="${download.dir}/ue"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/atomicscience/api/poison"/>
|
2013-08-06 22:00:55 +02:00
|
|
|
<move file="${download.dir}/ue/poison/Poison.java"
|
2013-04-24 07:44:54 +02:00
|
|
|
todir="${mcpsrc.dir}/atomicscience/api/poison"/>
|
2013-08-06 22:00:55 +02:00
|
|
|
<move file="${download.dir}/ue/IAntiPoisonArmor.java"
|
2013-04-24 07:44:54 +02:00
|
|
|
todir="${mcpsrc.dir}/atomicscience/api"/>
|
|
|
|
|
2013-09-02 22:38:05 +02:00
|
|
|
<get-api filename="ThermalExpansion-API-${thermexapi.version}.zip" into="${download.dir}"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/thermalexpansion/api/core"/>
|
|
|
|
<move file="${download.dir}/thermalexpansion/api/item/ItemRegistry.java"
|
|
|
|
todir="${mcpsrc.dir}/thermalexpansion/api/item"/>
|
|
|
|
|
2013-09-02 22:38:05 +02:00
|
|
|
<get-api filename="CoFHCore-API.zip" into="${download.dir}"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/cofh/api/tileentity"/>
|
|
|
|
<move file="${download.dir}/cofh/api/tileentity/IReconfigurableFacing.java"
|
|
|
|
todir="${mcpsrc.dir}/cofh/api/tileentity"/>
|
|
|
|
|
2013-11-09 21:50:40 +01:00
|
|
|
<get-api filename="CoFHLib-pre1.zip" into="${download.dir}"/>
|
|
|
|
<mkdir dir="${mcpsrc.dir}/cofh/api/energy"/>
|
|
|
|
<move file="${download.dir}/cofh/api/energy/IEnergyContainerItem.java"
|
|
|
|
todir="${mcpsrc.dir}/cofh/api/energy"/>
|
|
|
|
|
2013-09-02 22:38:05 +02:00
|
|
|
<get-api filename="galacticraft-src-${galacticraftapi.version}.zip" into="${download.dir}"/>
|
2013-08-10 22:11:57 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/micdoodle8/mods/galacticraft/api/item"/>
|
|
|
|
<move file="${download.dir}/micdoodle8/mods/galacticraft/api/item/IBreathableArmor.java"
|
|
|
|
todir="${mcpsrc.dir}/micdoodle8/mods/galacticraft/api/item"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
|
2013-09-02 22:38:05 +02:00
|
|
|
<get-api filename="Railcraft_API_latest.zip" into="${download.dir}"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/mods/railcraft/api/core/items"/>
|
|
|
|
<mkdir dir="${mcpsrc.dir}/buildcraft/api/tools/"/>
|
|
|
|
<move file="${download.dir}/src/minecraft/mods/railcraft/api/core/items/IToolCrowbar.java"
|
|
|
|
todir="${mcpsrc.dir}/mods/railcraft/api/core/items"/>
|
|
|
|
<move file="${download.dir}/src/minecraft/buildcraft/api/tools/IToolWrench.java"
|
|
|
|
todir="${mcpsrc.dir}/buildcraft/api/tools"/>
|
|
|
|
|
2013-09-02 22:38:05 +02:00
|
|
|
<get-api filename="MFR-API-${mfrapi.version}.zip" into="${download.dir}"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/powercrystals/minefactoryreloaded/api"/>
|
2013-04-30 01:52:30 +02:00
|
|
|
<move file="${download.dir}/powercrystals/minefactoryreloaded/api/IToolHammerAdvanced.java"
|
2013-04-24 07:44:54 +02:00
|
|
|
todir="${mcpsrc.dir}/powercrystals/minefactoryreloaded/api"/>
|
|
|
|
|
2013-09-02 22:38:05 +02:00
|
|
|
<get-api filename="forestry-api-${forestryapi.version}.zip" into="${download.dir}"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/forestry/api/apiculture"/>
|
|
|
|
<mkdir dir="${mcpsrc.dir}/forestry/api/arboriculture"/>
|
|
|
|
<mkdir dir="${mcpsrc.dir}/forestry/api/core"/>
|
|
|
|
<move file="${download.dir}/forestry/api/apiculture/IArmorApiarist.java"
|
|
|
|
todir="${mcpsrc.dir}/forestry/api/apiculture"/>
|
|
|
|
<move file="${download.dir}/forestry/api/arboriculture/IToolGrafter.java"
|
|
|
|
todir="${mcpsrc.dir}/forestry/api/arboriculture"/>
|
|
|
|
<move file="${download.dir}/forestry/api/core/ItemInterface.java" todir="${mcpsrc.dir}/forestry/api/core"/>
|
|
|
|
|
2013-09-02 16:54:22 +02:00
|
|
|
<!--<echo message="Extracting Thaumcraft API... "/>-->
|
|
|
|
<!--<mkdir dir="${download.dir}/thaumcraft"/>-->
|
|
|
|
<!--<unzip src="${download.dir}/TC4_API_ALPHA_01.zip" dest="${download.dir}/thaumcraft"/>-->
|
|
|
|
<!--<mkdir dir="${mcpsrc.dir}/thaumcraft/api"/>-->
|
|
|
|
<!--<move file="${download.dir}/thaumcraft/api/IAspectSource.java" todir="${mcpsrc.dir}/thaumcraft/api"/>-->
|
|
|
|
<!--<move file="${download.dir}/thaumcraft/api/ObjectTags.java" todir="${mcpsrc.dir}/thaumcraft/api"/>-->
|
|
|
|
<!--<move file="${download.dir}/thaumcraft/api/EnumTag.java" todir="${mcpsrc.dir}/thaumcraft/api"/>-->
|
|
|
|
<!--<move file="${download.dir}/thaumcraft/api/ThaumcraftApiHelper.java" todir="${mcpsrc.dir}/thaumcraft/api"/>-->
|
2013-04-25 18:27:53 +02:00
|
|
|
|
2013-09-02 22:38:05 +02:00
|
|
|
<get-api filename="MFFS2_API.zip" into="${download.dir}"/>
|
2013-04-30 01:49:23 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/mods/mffs/api"/>
|
|
|
|
<move file="${download.dir}/mods/mffs/api/IFieldTeleporter.java" todir="${mcpsrc.dir}/mods/mffs/api"/>
|
|
|
|
<move file="${download.dir}/mods/mffs/api/IMFFS_Wrench.java" todir="${mcpsrc.dir}/mods/mffs/api"/>
|
2013-04-25 18:27:53 +02:00
|
|
|
|
2013-09-02 22:38:05 +02:00
|
|
|
|
2013-09-04 02:48:35 +02:00
|
|
|
<get src="${apisource.url}/scalalib-${scala.version}.zip"
|
|
|
|
dest="${mcplib.dir}/scalalib-${scala.version}.zip"/>
|
|
|
|
|
2013-09-07 02:54:00 +02:00
|
|
|
<delete>
|
|
|
|
<fileset dir="${mcplib.dir}" includes="Numina-*.jar"/>
|
|
|
|
</delete>
|
2013-09-05 07:53:42 +02:00
|
|
|
<move todir="${mcplib.dir}">
|
|
|
|
<fileset dir="${dist.dir}" includes="Numina-dev-*.jar"/>
|
2013-09-05 07:36:59 +02:00
|
|
|
</move>
|
2013-05-01 04:29:54 +02:00
|
|
|
|
2013-09-04 02:48:35 +02:00
|
|
|
<get src="${apisource.url}/slick-util.jar"
|
2013-09-02 22:38:05 +02:00
|
|
|
dest="${download.dir}/slick-util.jar"/>
|
2013-05-01 04:29:54 +02:00
|
|
|
<copy file="${download.dir}/slick-util.jar" todir="${mcp.dir}/lib"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="update-names" depends="copy-source">
|
2013-08-07 23:34:48 +02:00
|
|
|
<get src="http://mcpold.ocean-labs.de/files/mcptest/methods.csv" dest="${mcp.dir}/conf/methods.csv"/>
|
|
|
|
<get src="http://mcpold.ocean-labs.de/files/mcptest/fields.csv" dest="${mcp.dir}/conf/fields.csv"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
|
|
|
|
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows" failonerror="true">
|
|
|
|
<arg line="/c updatenames.bat"/>
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec dir="${mcp.dir}" executable="bash" osfamily="unix" failonerror="true">
|
|
|
|
<arg value="-c"/>
|
|
|
|
<arg value="echo Yes | ./updatenames.sh"/>
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="install" depends="build">
|
2013-08-07 17:07:04 +02:00
|
|
|
<delete>
|
|
|
|
<fileset dir="${dist.dir}">
|
|
|
|
<include name="ModularPowersuits-${minecraft.version}-*"/>
|
|
|
|
</fileset>
|
|
|
|
</delete>
|
2013-08-07 20:04:13 +02:00
|
|
|
<copy file="${download.dir}/slick-util.jar" todir="${dist.dir}"/>
|
2013-10-03 19:36:02 +02:00
|
|
|
<!--<get src="http://files.minecraftforge.net/fmllibs/scala-library.jar"-->
|
|
|
|
<!--dest="${dist.dir}/scala-library.jar"/>-->
|
2013-08-07 20:04:13 +02:00
|
|
|
|
2013-08-07 16:58:25 +02:00
|
|
|
<jar destfile="${dist.dir}/ModularPowersuits-${minecraft.version}-${fullversion}.jar" basedir="${classes.dir}"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<delete dir="${classes.dir}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="rebuild" depends="clean,install">
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="forgeinstalled.check">
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="copy-source">
|
|
|
|
<delete dir="${mcpsrc.dir}/net/machinemuse"/>
|
|
|
|
<copy todir="${mcpsrc.dir}/net/machinemuse">
|
|
|
|
<fileset dir="${src.dir}/minecraft/net/machinemuse"/>
|
|
|
|
<filterset>
|
|
|
|
<filter token="MOD_VERSION" value="${fullversion}"/>
|
2013-08-07 01:42:28 +02:00
|
|
|
<filter token="MC_VERSION" value="${minecraft.version}"/>
|
2013-05-27 06:14:58 +02:00
|
|
|
<filter token="DEPENDENCIES"
|
2013-09-24 19:32:20 +02:00
|
|
|
value="*/ dependencies = "required-after:Forge@[${forgeant.version},);after:IC2;required-after:numina", /*"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
</filterset>
|
|
|
|
</copy>
|
2013-06-25 17:16:15 +02:00
|
|
|
<copy todir="${mcpsrc.dir}/net/minecraft/src" file="${src.dir}/minecraft/net/minecraft/src/ModelPlayer.java"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
</target>
|
|
|
|
|
2013-09-05 07:27:03 +02:00
|
|
|
<target name="build" depends="extract-apis,copy-source,update-names" unless="already-compiled">
|
2013-04-24 07:44:54 +02:00
|
|
|
|
2013-08-07 00:32:45 +02:00
|
|
|
<echo message="Applying Scala mcp patch..."/>
|
|
|
|
<get src="http://machinemuse.minecraftforge.net/scalapatch.sh" dest="${mcp.dir}/conf/scalapatch.sh"/>
|
2013-08-07 00:16:57 +02:00
|
|
|
<!--<unzip src="${download.dir}/scalapatch.zip" dest="${mcp.dir}"/>-->
|
2013-04-24 07:44:54 +02:00
|
|
|
|
2013-08-07 00:32:45 +02:00
|
|
|
<exec dir="${mcp.dir}/conf" executable="sh" osfamily="unix" failonerror="false">
|
|
|
|
<arg value="scalapatch.sh"/>
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
|
2013-04-24 07:44:54 +02:00
|
|
|
<!-- Recompile -->
|
|
|
|
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows" failonerror="true">
|
|
|
|
<arg line="/c recompile.bat"/>
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec dir="${mcp.dir}" executable="sh" osfamily="unix" failonerror="true">
|
|
|
|
<arg value="recompile.sh"/>
|
|
|
|
</exec>
|
|
|
|
|
2013-08-07 00:51:05 +02:00
|
|
|
<!-- Reobfuscation -->
|
2013-04-24 07:44:54 +02:00
|
|
|
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows">
|
2013-07-12 05:29:18 +02:00
|
|
|
<arg line="/c reobfuscate_srg.bat"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec dir="${mcp.dir}" executable="sh" osfamily="unix">
|
2013-07-12 05:29:18 +02:00
|
|
|
<arg value="reobfuscate_srg.sh"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
</exec>
|
2013-06-25 17:16:15 +02:00
|
|
|
|
2013-04-24 07:44:54 +02:00
|
|
|
<copy todir="${classes.dir}">
|
|
|
|
<fileset dir="${mcp.dir}/reobf/minecraft"/>
|
|
|
|
</copy>
|
2013-06-25 17:16:15 +02:00
|
|
|
|
2013-08-07 00:54:26 +02:00
|
|
|
<mkdir dir="${classes.dir}/assets"/>
|
2013-08-07 01:10:45 +02:00
|
|
|
<copy todir="${classes.dir}/assets/powersuits">
|
2013-04-24 07:44:54 +02:00
|
|
|
<fileset dir="${resources.dir}"/>
|
|
|
|
</copy>
|
2013-06-25 17:16:15 +02:00
|
|
|
|
2013-08-07 01:42:28 +02:00
|
|
|
<copy todir="${classes.dir}" file="pack.mcmeta">
|
|
|
|
<filterset>
|
|
|
|
<filter token="MC_VERSION" value="${minecraft.version}"/>
|
|
|
|
<filter token="MOD_VERSION" value="${fullversion}"/>
|
|
|
|
</filterset>
|
|
|
|
</copy>
|
|
|
|
|
2013-04-24 07:44:54 +02:00
|
|
|
<copy todir="${classes.dir}" file="mcmod.info">
|
|
|
|
<filterset>
|
2013-08-07 01:42:28 +02:00
|
|
|
<filter token="MC_VERSION" value="${minecraft.version}"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
<filter token="MOD_VERSION" value="${fullversion}"/>
|
|
|
|
</filterset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="setup-forge" depends="download-forge" unless="forge-already-installed">
|
|
|
|
|
|
|
|
<unzip dest="${build.dir}">
|
|
|
|
<fileset dir="${download.dir}">
|
|
|
|
<include name="minecraftforge-src-${forge.version}.zip"/>
|
|
|
|
</fileset>
|
|
|
|
</unzip>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Change executables' permitions -->
|
|
|
|
|
|
|
|
<chmod file="${forge.dir}/install.sh" perm="+x"/>
|
|
|
|
|
|
|
|
<!-- if your building on OSX these 2 should be executable -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Install forge -->
|
|
|
|
<delete dir="${mcp.dir}" failonerror="no"/>
|
|
|
|
<exec dir="${forge.dir}" executable="cmd" osfamily="windows" inputstring="Yes\n">
|
|
|
|
<arg line="/c install.cmd"/>
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec dir="${forge.dir}" executable="sh" osfamily="unix" inputstring="Yes\n">
|
|
|
|
<arg value="install.sh"/>
|
|
|
|
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
|
|
|
|
<chmod file="${mcp.dir}/updatemd5.sh" perm="+x"/>
|
|
|
|
<chmod file="${mcp.dir}/recompile.sh" perm="+x"/>
|
|
|
|
<chmod file="${mcp.dir}/reobfuscate.sh" perm="+x"/>
|
|
|
|
<chmod file="${mcp.dir}/runtime/bin/astyle-osx" perm="+x"/>
|
|
|
|
<chmod file="${mcp.dir}/runtime/bin/jad-osx" perm="+x"/>
|
|
|
|
<mkdir dir="${mcpsrc.dir}/net/machinemuse"/>
|
|
|
|
|
|
|
|
<!-- Copy libraries
|
|
|
|
<copy todir="${mcp.dir}/lib">
|
|
|
|
<fileset dir="lib">
|
|
|
|
<patternset includes="*.jar" />
|
|
|
|
</fileset>
|
|
|
|
</copy> -->
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="download-forge" depends="download-ant-contrib" unless="forge-exists">
|
|
|
|
<taskdef resource="net/sf/antcontrib/antlib.xml">
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="${download.dir}/ant-contrib/ant-contrib-1.0b3.jar"/>
|
|
|
|
<fileset dir="${download.dir}/ant-contrib/lib">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</classpath>
|
|
|
|
</taskdef>
|
|
|
|
<echo message="Downloading forge... "/>
|
2013-08-04 01:03:03 +02:00
|
|
|
<!--
|
2013-08-04 00:58:44 +02:00
|
|
|
<getMethod url="http://files.minecraftforge.net/minecraftforge-src-${forge.version}.zip"
|
2013-04-24 07:44:54 +02:00
|
|
|
responseDataFile="${download.dir}/minecraftforge-src-${forge.version}.zip">
|
|
|
|
<header name="User-Agent" value="Ant-${ant.version}/${ant.java.version}"/>
|
|
|
|
</getMethod>
|
2013-08-04 01:03:03 +02:00
|
|
|
-->
|
|
|
|
|
2013-08-04 01:04:34 +02:00
|
|
|
<get src="http://machinemuse.minecraftforge.net/minecraftforge-src-${forge.version}.zip"
|
2013-08-04 01:03:03 +02:00
|
|
|
dest="${download.dir}/minecraftforge-src-${forge.version}.zip"/>
|
2013-04-24 07:44:54 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="download-ant-contrib" unless="should-download-ant-contrib">
|
|
|
|
<echo message="Getting: ant-contrib"/>
|
|
|
|
<mkdir dir="${download.dir}/tmp"/>
|
|
|
|
<mkdir dir="${download.dir}/ant-contrib/lib"/>
|
|
|
|
<get src="http://sourceforge.net/projects/ant-contrib/files/ant-contrib/1.0b3/ant-contrib-1.0b3-bin.zip/download"
|
|
|
|
dest="${download.dir}/tmp/ant-contrib-1.0b3-bin.zip"/>
|
|
|
|
<get src="http://archive.apache.org/dist/commons/codec/binaries/commons-codec-1.6-bin.zip"
|
|
|
|
dest="${download.dir}/tmp/commons-codec-1.6-bin.zip"/>
|
|
|
|
|
|
|
|
<unzip src="${download.dir}/tmp/ant-contrib-1.0b3-bin.zip" dest="${download.dir}"/>
|
|
|
|
<unzip src="${download.dir}/tmp/commons-codec-1.6-bin.zip" dest="${download.dir}/tmp"/>
|
|
|
|
|
|
|
|
<move todir="${download.dir}/ant-contrib/lib">
|
|
|
|
<fileset file="${download.dir}/tmp/commons-codec-1.6/commons-codec-1.6.jar"/>
|
|
|
|
</move>
|
|
|
|
|
|
|
|
<!-- Delete useless files -->
|
|
|
|
<delete dir="${download.dir}/ant-contrib/docs"/>
|
|
|
|
<delete dir="${download.dir}/tmp"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${build.dir}"/>
|
|
|
|
<delete dir="${download.dir}"/>
|
|
|
|
</target>
|
2013-01-25 07:57:55 +01:00
|
|
|
|
|
|
|
|
2013-03-20 04:31:01 +01:00
|
|
|
</project>
|