2013-04-21 06:49:24 +02:00
|
|
|
<project name="ModularPowersuits" default="install" basedir=".">
|
2013-01-25 07:57:55 +01:00
|
|
|
|
2013-03-16 08:55:00 +01:00
|
|
|
<property environment="env" />
|
2013-01-25 10:09:21 +01:00
|
|
|
|
2013-01-25 07:57:55 +01:00
|
|
|
|
2013-01-25 08:04:08 +01:00
|
|
|
<!-- Versions -->
|
2013-04-19 15:44:48 +02:00
|
|
|
<property name="build.ver" value="0.6.0" />
|
2013-01-25 09:28:45 +01:00
|
|
|
<property name="fullversion" value="${build.ver}-${env.BUILD_NUMBER}" />
|
2013-03-16 07:59:13 +01:00
|
|
|
<property name="mcp.version" value="742" />
|
2013-04-19 21:43:51 +02:00
|
|
|
<property name="forgebuild" value="661" />
|
2013-04-08 09:07:14 +02:00
|
|
|
<property name="forge.version" value="1.5.1-7.7.1.${forgebuild}" />
|
2013-04-22 06:01:07 +02:00
|
|
|
<property name="ic2api.version" value="1.115.289-lf" />
|
2013-04-08 09:05:27 +02:00
|
|
|
<property name="ueapi.version" value="1.3.1.56" />
|
|
|
|
<property name="asapi.version" value="0.5.1.3" />
|
|
|
|
<property name="icbmapi.version" value="1.1.1.26" />
|
2013-04-21 17:55:14 +02:00
|
|
|
<property name="thermexapi.version" value="2.3.0b" />
|
2013-04-03 00:40:24 +02:00
|
|
|
<property name="galacticraftapi.version" value="1" />
|
2013-04-22 00:29:43 +02:00
|
|
|
<property name="mfrapi.version" value="2.4.0-478" />
|
2013-04-21 21:29:54 +02:00
|
|
|
<property name="forestryapi.version" value="2.1.2.19" />
|
2013-01-25 08:04:08 +01:00
|
|
|
|
|
|
|
<!-- Directories -->
|
|
|
|
<property name="download.dir" value="downloads" />
|
|
|
|
<property name="ue.download.dir" value="${download.dir}/ue/minecraft/universalelectricity" />
|
|
|
|
<property name="src.dir" value="src" />
|
|
|
|
<property name="lib.dir" value="${src.dir}/lib" />
|
2013-01-25 07:57:55 +01:00
|
|
|
<property name="build.dir" value="build" />
|
|
|
|
<property name="classes.dir" value="${build.dir}/packaging" />
|
|
|
|
<property name="forge.dir" value="${build.dir}/forge" />
|
2013-01-25 08:04:08 +01:00
|
|
|
<property name="dist.dir" value="${build.dir}/dist" />
|
2013-01-25 07:57:55 +01:00
|
|
|
<property name="mcp.dir" value="${forge.dir}/mcp" />
|
|
|
|
<property name="mcpsrc.dir" value="${mcp.dir}/src/minecraft" />
|
2013-03-16 09:14:45 +01:00
|
|
|
<property name="resources.dir" value="mods/mmmPowersuits" />
|
2013-01-25 08:04:08 +01:00
|
|
|
|
|
|
|
<!-- URLs -->
|
|
|
|
<property name="forge.url" value="http://files.minecraftforge.net/minecraftforge/minecraftforge-src-${forge.version}.zip" />
|
2013-01-25 07:57:55 +01:00
|
|
|
|
2013-01-25 08:04:08 +01:00
|
|
|
|
|
|
|
<!-- Name -->
|
2013-01-25 07:57:55 +01:00
|
|
|
<property name="package.meta-inf" value="META-INF" />
|
|
|
|
|
|
|
|
|
2013-01-25 10:36:27 +01:00
|
|
|
<!-- Version Checking -->
|
|
|
|
|
2013-01-25 10:43:14 +01:00
|
|
|
<property file="${forge.dir}/forgeversion.properties" />
|
2013-03-20 04:31:01 +01:00
|
|
|
<condition property="forge-already-installed">
|
2013-02-15 20:37:37 +01:00
|
|
|
<equals arg1="${forge.build.number}" arg2="${forgebuild}" />
|
2013-01-25 10:39:07 +01:00
|
|
|
</condition>
|
2013-01-25 10:36:27 +01:00
|
|
|
<available property="forge-exists" file="${download.dir}/minecraftforge-src-${forge.version}.zip" />
|
|
|
|
<available property="already-compiled" file="${classes.dir}/net/machinemuse" />
|
2013-01-25 14:28:03 +01:00
|
|
|
|
2013-01-30 15:18:05 +01:00
|
|
|
<mkdir dir="${download.dir}" />
|
|
|
|
<mkdir dir="${build.dir}" />
|
|
|
|
|
2013-01-25 14:28:03 +01:00
|
|
|
|
2013-01-25 10:36:27 +01:00
|
|
|
<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-01-25 07:57:55 +01:00
|
|
|
|
2013-01-30 15:18:05 +01:00
|
|
|
<condition property="have-apis">
|
|
|
|
<and>
|
|
|
|
<available file="${download.dir}/industrialcraft-2-api_${ic2api.version}.zip" />
|
2013-03-16 08:42:50 +01:00
|
|
|
<available file="${download.dir}/UniversalElectricity_v${ueapi.version}.zip" />
|
2013-04-08 09:05:27 +02:00
|
|
|
<available file="${download.dir}/ICBM_API_v${icbmapi.version}.zip" />
|
2013-02-19 07:35:38 +01:00
|
|
|
<available file="${download.dir}/ThermalExpansion-API-${thermexapi.version}.zip" />
|
2013-04-22 00:29:43 +02:00
|
|
|
<available file="${download.dir}/CoFHCore-API.zip" />
|
2013-03-16 08:55:00 +01:00
|
|
|
<available file="${download.dir}/AtomicScience_v${asapi.version}.zip" />
|
2013-04-20 11:43:22 +02:00
|
|
|
<available file="${download.dir}/GalacticraftAPIB.zip" />
|
2013-04-22 00:29:43 +02:00
|
|
|
<available file="${download.dir}/Railcraft_API_latest.zip" />
|
|
|
|
<available file="${download.dir}/MFR-API-${mfrapi.version}.zip" />
|
2013-04-21 21:29:54 +02:00
|
|
|
<available file="${download.dir}/forestry-api-${forestryapi.version}.zip" />
|
2013-01-30 15:18:05 +01:00
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
|
2013-01-25 14:28:03 +01:00
|
|
|
<target name="download-apis" unless="${have-apis}">
|
2013-01-30 15:18:05 +01:00
|
|
|
<echo message="Downloading IC2 API... " />
|
2013-04-20 11:40:50 +02:00
|
|
|
<get src="http://machinemuse.minecraftforge.net/industrialcraft-2-api_${ic2api.version}.zip" dest="${download.dir}/industrialcraft-2-api_${ic2api.version}.zip" />
|
2013-01-25 07:57:55 +01:00
|
|
|
|
2013-01-25 14:28:03 +01:00
|
|
|
<echo message="Downloading Universal Electricity API..." />
|
2013-04-20 11:40:50 +02:00
|
|
|
<get src="http://machinemuse.minecraftforge.net/UniversalElectricity_v${ueapi.version}.zip" dest="${download.dir}/UniversalElectricity_v${ueapi.version}.zip" />
|
2013-01-30 15:18:05 +01:00
|
|
|
|
|
|
|
<echo message="Downloading ICBM API..." />
|
2013-04-20 11:40:50 +02:00
|
|
|
<get src="http://machinemuse.minecraftforge.net/ICBM_API_v${icbmapi.version}.zip" dest="${download.dir}/ICBM_API_v${icbmapi.version}.zip" />
|
2013-02-08 20:54:05 +01:00
|
|
|
|
2013-03-16 08:55:00 +01:00
|
|
|
<echo message="Downloading Atomic Science API..." />
|
2013-04-20 11:40:50 +02:00
|
|
|
<get src="http://machinemuse.minecraftforge.net/AtomicScience_v${asapi.version}_api.zip" dest="${download.dir}/AtomicScience_v${asapi.version}_api.zip" />
|
2013-03-05 04:08:35 +01:00
|
|
|
|
2013-02-08 20:54:05 +01:00
|
|
|
<echo message="Downloading ThermEx API..." />
|
2013-04-20 11:40:50 +02:00
|
|
|
<get src="http://machinemuse.minecraftforge.net/ThermalExpansion-API-${thermexapi.version}.zip" dest="${download.dir}/ThermalExpansion-API-${thermexapi.version}.zip" />
|
2013-04-03 00:40:24 +02:00
|
|
|
|
2013-04-22 00:29:43 +02:00
|
|
|
<echo message="Downloading CoFH API..." />
|
|
|
|
<get src="http://machinemuse.minecraftforge.net/CoFHCore-API.zip" dest="${download.dir}/CoFHCore-API.zip" />
|
|
|
|
|
2013-04-03 00:40:24 +02:00
|
|
|
<echo message="Downloading Galacticraft API..." />
|
2013-04-20 11:43:22 +02:00
|
|
|
<get src="http://machinemuse.minecraftforge.net/GalacticraftAPIB.zip" dest="${download.dir}/GalacticraftAPIB.zip" />
|
2013-04-22 00:29:43 +02:00
|
|
|
|
|
|
|
<echo message="Downloading Railcraft API..." />
|
|
|
|
<get src="http://machinemuse.minecraftforge.net/Railcraft_API_latest.zip" dest="${download.dir}/Railcraft_API_latest.zip" />
|
|
|
|
|
|
|
|
<echo message="Downloading MFR API..." />
|
|
|
|
<get src="http://machinemuse.minecraftforge.net/MFR-API-${mfrapi.version}.zip" dest="${download.dir}/MFR-API-${mfrapi.version}.zip" />
|
2013-04-21 21:29:54 +02:00
|
|
|
|
|
|
|
<echo message="Downloading Forestry API..." />
|
|
|
|
<get src="http://machinemuse.minecraftforge.net/forestry-api-${forestryapi.version}.zip" dest="${download.dir}/forestry-api-${forestryapi.version}.zip" />
|
2013-01-25 14:28:03 +01:00
|
|
|
</target>
|
2013-01-25 07:57:55 +01:00
|
|
|
|
2013-01-25 14:28:03 +01:00
|
|
|
<!-- Dependencies -->
|
|
|
|
<target name="extract-apis" depends="setup-forge,download-apis">
|
2013-01-30 15:18:05 +01:00
|
|
|
<echo message="Extracting IC2 API... " />
|
2013-01-25 08:04:08 +01:00
|
|
|
<unzip src="${download.dir}/industrialcraft-2-api_${ic2api.version}.zip" dest="${download.dir}" />
|
2013-04-22 00:29:43 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/ic2/api/energy/tile" />
|
2013-01-25 08:04:08 +01:00
|
|
|
<move file="${download.dir}/ic2/api/Ic2Recipes.java" todir="${mcpsrc.dir}/ic2/api/" />
|
|
|
|
<move file="${download.dir}/ic2/api/ICustomElectricItem.java" todir="${mcpsrc.dir}/ic2/api/" />
|
|
|
|
<move file="${download.dir}/ic2/api/IElectricItem.java" todir="${mcpsrc.dir}/ic2/api/" />
|
2013-03-25 03:08:15 +01:00
|
|
|
<move file="${download.dir}/ic2/api/ElectricItem.java" todir="${mcpsrc.dir}/ic2/api/" />
|
2013-01-25 08:04:08 +01:00
|
|
|
<move file="${download.dir}/ic2/api/Items.java" todir="${mcpsrc.dir}/ic2/api/" />
|
2013-04-22 00:29:43 +02:00
|
|
|
<move file="${download.dir}/ic2/api/Direction.java" todir="${mcpsrc.dir}/ic2/api/" />
|
|
|
|
<move file="${download.dir}/ic2/api/IWrenchable.java" todir="${mcpsrc.dir}/ic2/api/" />
|
|
|
|
<move todir="${mcpsrc.dir}/ic2/api/energy/tile/" >
|
|
|
|
<fileset dir="${download.dir}/ic2/api/energy/tile/" />
|
|
|
|
</move>
|
2013-01-25 08:04:08 +01:00
|
|
|
|
2013-01-30 15:18:05 +01:00
|
|
|
<echo message="Extracting UE API... " />
|
2013-01-25 08:04:08 +01:00
|
|
|
<mkdir dir="${download.dir}/ue" />
|
2013-03-16 08:42:50 +01:00
|
|
|
<unzip src="${download.dir}/UniversalElectricity_v${ueapi.version}.zip" dest="${download.dir}/ue/" />
|
2013-03-16 08:55:00 +01:00
|
|
|
<mkdir dir="${mcpsrc.dir}/universalelectricity/core/" />
|
2013-04-22 00:29:43 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/universalelectricity/prefab/implement/" />
|
2013-02-19 07:39:08 +01:00
|
|
|
<move todir="${mcpsrc.dir}/universalelectricity/core/">
|
2013-02-19 07:45:49 +01:00
|
|
|
<fileset dir="${ue.download.dir}/core/" />
|
2013-02-19 07:36:49 +01:00
|
|
|
</move>
|
2013-04-22 04:50:06 +02:00
|
|
|
<move file="${ue.download.dir}/prefab/implement/IToolConfigurator.java" todir="${mcpsrc.dir}/universalelectricity/prefab/implement/" />
|
2013-03-16 08:55:00 +01:00
|
|
|
|
2013-01-30 15:18:05 +01:00
|
|
|
<echo message="Extracting ICBM API... " />
|
2013-04-08 09:05:27 +02:00
|
|
|
<unzip src="${download.dir}/ICBM_API_v${icbmapi.version}.zip" dest="${download.dir}/ue" />
|
2013-03-16 08:55:00 +01:00
|
|
|
<mkdir dir="${mcpsrc.dir}/icbm/api/explosion" />
|
2013-04-08 09:18:41 +02:00
|
|
|
<move file="${download.dir}/ue/src/minecraft/icbm/api/explosion/IExplosive.java" todir="${mcpsrc.dir}/icbm/api/explosion/" />
|
|
|
|
<move file="${download.dir}/ue/src/minecraft/icbm/api/explosion/IEMPItem.java" todir="${mcpsrc.dir}/icbm/api/explosion/" />
|
2013-03-16 08:55:00 +01:00
|
|
|
|
|
|
|
<echo message="Extracting Atomic Science API... " />
|
|
|
|
<unzip src="${download.dir}/AtomicScience_v${asapi.version}_api.zip" dest="${download.dir}/ue" />
|
|
|
|
<mkdir dir="${mcpsrc.dir}/atomicscience/api/poison" />
|
2013-04-08 09:21:14 +02:00
|
|
|
<move file="${download.dir}/ue/src/minecraft/atomicscience/api/poison/Poison.java" todir="${mcpsrc.dir}/atomicscience/api/poison" />
|
|
|
|
<move file="${download.dir}/ue/src/minecraft/atomicscience/api/IAntiPoisonArmor.java" todir="${mcpsrc.dir}/atomicscience/api" />
|
2013-02-08 20:54:05 +01:00
|
|
|
|
|
|
|
<echo message="Extracting ThermalExpansion API... " />
|
|
|
|
<unzip src="${download.dir}/ThermalExpansion-API-${thermexapi.version}.zip" dest="${download.dir}" />
|
|
|
|
<mkdir dir="${mcpsrc.dir}/thermalexpansion/api/core" />
|
2013-04-08 09:23:00 +02:00
|
|
|
<move file="${download.dir}/thermalexpansion/api/item/ItemRegistry.java" todir="${mcpsrc.dir}/thermalexpansion/api/item" />
|
2013-04-08 09:21:14 +02:00
|
|
|
<move file="${download.dir}/thermalexpansion/api/item/IChargeableItem.java" todir="${mcpsrc.dir}/thermalexpansion/api/item" />
|
2013-04-03 00:40:24 +02:00
|
|
|
|
2013-04-22 00:29:43 +02:00
|
|
|
<echo message="Extracting CoFH API..." />
|
|
|
|
<unzip src="${download.dir}/CoFHCore-API.zip" dest="${download.dir}" />
|
|
|
|
<mkdir dir="${mcpsrc.dir}/cofh/api/tileentity" />
|
|
|
|
<move file="${download.dir}/cofh/api/tileentity/IReconfigurableFacing.java" todir="${mcpsrc.dir}/cofh/api/tileentity" />
|
|
|
|
|
2013-04-03 00:40:24 +02:00
|
|
|
<echo message="Extracting Galacticraft API... " />
|
2013-04-20 11:43:22 +02:00
|
|
|
<unzip src="${download.dir}/GalacticraftAPIB.zip" dest="${download.dir}" />
|
2013-04-03 00:40:24 +02:00
|
|
|
<mkdir dir="${mcpsrc.dir}/micdoodle8/mods/galacticraft/API" />
|
|
|
|
<move file="${download.dir}/micdoodle8/mods/galacticraft/API/EnumGearType.java" todir="${mcpsrc.dir}/micdoodle8/mods/galacticraft/API" />
|
|
|
|
<move file="${download.dir}/micdoodle8/mods/galacticraft/API/IBreathableArmor.java" todir="${mcpsrc.dir}/micdoodle8/mods/galacticraft/API" />
|
|
|
|
|
2013-04-22 00:29:43 +02:00
|
|
|
<echo message="Extracting Railcraft API... " />
|
|
|
|
<unzip src="${download.dir}/Railcraft_API_latest.zip" dest="${download.dir}" />
|
|
|
|
<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" />
|
|
|
|
|
|
|
|
<echo message="Extracting MFR API... " />
|
|
|
|
<unzip src="${download.dir}/MFR-API-${mfrapi.version}.zip" dest="${download.dir}" />
|
|
|
|
<mkdir dir="${mcpsrc.dir}/powercrystals/minefactoryreloaded/api" />
|
|
|
|
<move file="${download.dir}/powercrystals/minefactoryreloaded/api/IToolHammer.java" todir="${mcpsrc.dir}/powercrystals/minefactoryreloaded/api" />
|
2013-04-22 04:40:41 +02:00
|
|
|
|
2013-04-21 21:29:54 +02:00
|
|
|
<echo message="Extracting Forestry API... " />
|
|
|
|
<unzip src="${download.dir}/forestry-api-${forestryapi.version}.zip" dest="${download.dir}" />
|
|
|
|
<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-04-21 21:29:54 +02:00
|
|
|
|
2013-01-25 07:57:55 +01:00
|
|
|
</target>
|
2013-01-25 08:04:08 +01:00
|
|
|
|
2013-03-17 05:18:57 +01:00
|
|
|
<target name="update-names" depends="copy-source">
|
2013-03-16 08:55:00 +01:00
|
|
|
<get src="http://mcp.ocean-labs.de/files/mcptest/methods.csv" dest="${mcp.dir}/conf/methods.csv" />
|
|
|
|
<get src="http://mcp.ocean-labs.de/files/mcptest/fields.csv" dest="${mcp.dir}/conf/fields.csv" />
|
2013-03-17 05:18:57 +01:00
|
|
|
|
2013-03-16 08:55:00 +01:00
|
|
|
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows" failonerror="true">
|
|
|
|
<arg line="/c updatenames.bat" />
|
|
|
|
</exec>
|
|
|
|
|
2013-03-16 09:03:04 +01:00
|
|
|
<exec dir="${mcp.dir}" executable="bash" osfamily="unix" failonerror="true">
|
2013-03-17 05:18:57 +01:00
|
|
|
<arg value="-c" />
|
2013-03-16 09:12:23 +01:00
|
|
|
<arg value="echo Yes | ./updatenames.sh" />
|
2013-03-16 08:55:00 +01:00
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2013-01-25 07:57:55 +01:00
|
|
|
<target name="install" depends="build">
|
2013-01-25 08:04:08 +01:00
|
|
|
<jar destfile="${dist.dir}/ModularPowersuits-${fullversion}.jar" basedir="${classes.dir}" />
|
2013-01-25 07:57:55 +01:00
|
|
|
<delete dir="${classes.dir}" />
|
|
|
|
</target>
|
2013-01-25 10:36:27 +01:00
|
|
|
|
2013-04-19 22:19:02 +02:00
|
|
|
<target name="rebuild" depends="clean,install">
|
2013-04-20 09:27:02 +02:00
|
|
|
</target>
|
2013-04-19 22:19:02 +02:00
|
|
|
|
2013-01-25 10:28:55 +01:00
|
|
|
<target name="forgeinstalled.check">
|
|
|
|
</target>
|
2013-01-25 10:36:27 +01:00
|
|
|
|
2013-03-17 05:18:57 +01:00
|
|
|
<target name="copy-source">
|
2013-04-21 06:50:37 +02:00
|
|
|
<delete dir="${mcpsrc.dir}/net/machinemuse" />
|
2013-01-25 10:36:27 +01:00
|
|
|
<copy todir="${mcpsrc.dir}/net/machinemuse">
|
|
|
|
<fileset dir="${src.dir}/minecraft/net/machinemuse" />
|
|
|
|
<filterset>
|
|
|
|
<filter token="MOD_VERSION" value="${fullversion}" />
|
|
|
|
</filterset>
|
|
|
|
</copy>
|
2013-03-17 05:18:57 +01:00
|
|
|
</target>
|
|
|
|
|
2013-04-21 06:49:24 +02:00
|
|
|
<target name="build" depends="extract-apis,copy-source" unless="already-compiled">
|
2013-01-25 10:36:27 +01:00
|
|
|
|
2013-04-19 22:19:02 +02:00
|
|
|
<echo message="Applying Scala patches..." />
|
2013-04-20 11:21:45 +02:00
|
|
|
<get src="http://overminddl1.com/minecraft/mcp_update_scala3.zip" dest="${download.dir}/scalapatch.zip" />
|
2013-04-19 22:19:02 +02:00
|
|
|
<unzip src="${download.dir}/scalapatch.zip" dest="${mcp.dir}" />
|
|
|
|
|
2013-01-25 07:57:55 +01:00
|
|
|
<!-- Recompile -->
|
|
|
|
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows" failonerror="true">
|
2013-01-25 08:04:08 +01:00
|
|
|
<arg line="/c recompile.bat" />
|
2013-01-25 07:57:55 +01:00
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec dir="${mcp.dir}" executable="sh" osfamily="unix" failonerror="true">
|
2013-03-16 09:00:04 +01:00
|
|
|
<arg value="recompile.sh" />
|
2013-01-25 07:57:55 +01:00
|
|
|
</exec>
|
|
|
|
|
|
|
|
<!-- Reobf -->
|
|
|
|
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows">
|
2013-04-11 06:26:49 +02:00
|
|
|
<arg line="/c reobfuscate_srg.bat" />
|
2013-01-25 07:57:55 +01:00
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec dir="${mcp.dir}" executable="sh" osfamily="unix">
|
2013-04-11 06:26:49 +02:00
|
|
|
<arg value="reobfuscate_srg.sh" />
|
2013-01-25 07:57:55 +01:00
|
|
|
</exec>
|
|
|
|
<copy todir="${classes.dir}">
|
2013-01-25 08:04:08 +01:00
|
|
|
<fileset dir="${mcp.dir}/reobf/minecraft" />
|
2013-01-25 07:57:55 +01:00
|
|
|
</copy>
|
2013-03-16 09:14:45 +01:00
|
|
|
<mkdir dir="${classes.dir}/mods" />
|
2013-03-20 09:54:17 +01:00
|
|
|
<copy todir="${classes.dir}/mods/mmmPowersuits">
|
2013-01-25 08:04:08 +01:00
|
|
|
<fileset dir="${resources.dir}" />
|
2013-01-25 07:57:55 +01:00
|
|
|
</copy>
|
2013-01-25 10:09:21 +01:00
|
|
|
<copy todir="${classes.dir}" file="mcmod.info">
|
|
|
|
<filterset>
|
|
|
|
<filter token="MOD_VERSION" value="${fullversion}" />
|
|
|
|
</filterset>
|
|
|
|
</copy>
|
2013-01-25 07:57:55 +01:00
|
|
|
</target>
|
|
|
|
|
2013-03-20 04:31:01 +01:00
|
|
|
<target name="setup-forge" depends="download-forge" unless="forge-already-installed">
|
2013-01-25 07:57:55 +01:00
|
|
|
|
|
|
|
<unzip dest="${build.dir}">
|
|
|
|
<fileset dir="${download.dir}">
|
2013-01-25 08:04:08 +01:00
|
|
|
<include name="minecraftforge-src-${forge.version}.zip" />
|
2013-01-25 07:57:55 +01:00
|
|
|
</fileset>
|
|
|
|
</unzip>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Change executables' permitions -->
|
|
|
|
|
2013-01-25 08:04:08 +01:00
|
|
|
<chmod file="${forge.dir}/install.sh" perm="+x" />
|
2013-01-25 07:57:55 +01:00
|
|
|
|
|
|
|
<!-- if your building on OSX these 2 should be executable -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Install forge -->
|
2013-01-25 08:04:08 +01:00
|
|
|
<delete dir="${mcp.dir}" failonerror="no" />
|
2013-01-25 07:57:55 +01:00
|
|
|
<exec dir="${forge.dir}" executable="cmd" osfamily="windows" inputstring="Yes\n">
|
2013-01-25 08:04:08 +01:00
|
|
|
<arg line="/c install.cmd" />
|
2013-01-25 07:57:55 +01:00
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec dir="${forge.dir}" executable="sh" osfamily="unix" inputstring="Yes\n">
|
|
|
|
<arg value="install.sh" />
|
|
|
|
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
|
2013-01-25 08:04:08 +01:00
|
|
|
<chmod file="${mcp.dir}/updatemd5.sh" perm="+x" />
|
|
|
|
<chmod file="${mcp.dir}/recompile.sh" perm="+x" />
|
|
|
|
<chmod file="${mcp.dir}/reobfuscate.sh" perm="+x" />
|
2013-01-25 07:57:55 +01:00
|
|
|
<chmod file="${mcp.dir}/runtime/bin/astyle-osx" perm="+x" />
|
|
|
|
<chmod file="${mcp.dir}/runtime/bin/jad-osx" perm="+x" />
|
2013-01-25 08:04:08 +01:00
|
|
|
<mkdir dir="${mcpsrc.dir}/net/machinemuse" />
|
2013-01-25 07:57:55 +01:00
|
|
|
|
2013-01-25 08:32:16 +01:00
|
|
|
<!-- Copy libraries
|
2013-01-25 08:04:08 +01:00
|
|
|
<copy todir="${mcp.dir}/lib">
|
|
|
|
<fileset dir="lib">
|
2013-01-25 07:57:55 +01:00
|
|
|
<patternset includes="*.jar" />
|
|
|
|
</fileset>
|
2013-01-25 08:32:16 +01:00
|
|
|
</copy> -->
|
2013-01-25 07:57:55 +01:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="download-forge" depends="download-ant-contrib" unless="forge-exists">
|
|
|
|
<taskdef resource="net/sf/antcontrib/antlib.xml">
|
|
|
|
<classpath>
|
2013-01-25 08:04:08 +01:00
|
|
|
<pathelement location="${download.dir}/ant-contrib/ant-contrib-1.0b3.jar" />
|
2013-01-25 07:57:55 +01:00
|
|
|
<fileset dir="${download.dir}/ant-contrib/lib">
|
2013-01-25 08:04:08 +01:00
|
|
|
<include name="*.jar" />
|
2013-01-25 07:57:55 +01:00
|
|
|
</fileset>
|
|
|
|
</classpath>
|
|
|
|
</taskdef>
|
|
|
|
<echo message="Downloading forge... " />
|
2013-03-16 08:35:23 +01:00
|
|
|
<getMethod url="http://files.minecraftforge.net/minecraftforge-src-${forge.version}.zip" responseDataFile="${download.dir}/minecraftforge-src-${forge.version}.zip">
|
|
|
|
<header name="User-Agent" value="Ant-${ant.version}/${ant.java.version}" />
|
|
|
|
</getMethod>
|
2013-01-25 07:57:55 +01:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="download-ant-contrib" unless="should-download-ant-contrib">
|
2013-01-25 08:04:08 +01:00
|
|
|
<echo message="Getting: ant-contrib" />
|
|
|
|
<mkdir dir="${download.dir}/tmp" />
|
2013-01-25 07:57:55 +01:00
|
|
|
<mkdir dir="${download.dir}/ant-contrib/lib" />
|
2013-01-25 08:04:08 +01:00
|
|
|
<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" />
|
2013-01-25 07:57:55 +01:00
|
|
|
|
2013-01-25 08:04:08 +01:00
|
|
|
<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" />
|
2013-01-25 07:57:55 +01:00
|
|
|
|
|
|
|
<move todir="${download.dir}/ant-contrib/lib">
|
2013-01-25 08:04:08 +01:00
|
|
|
<fileset file="${download.dir}/tmp/commons-codec-1.6/commons-codec-1.6.jar" />
|
2013-01-25 07:57:55 +01:00
|
|
|
</move>
|
|
|
|
|
|
|
|
<!-- Delete useless files -->
|
2013-01-25 08:04:08 +01:00
|
|
|
<delete dir="${download.dir}/ant-contrib/docs" />
|
|
|
|
<delete dir="${download.dir}/tmp" />
|
2013-01-25 07:57:55 +01:00
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2013-01-25 08:04:08 +01:00
|
|
|
<target name="clean">
|
2013-01-25 07:57:55 +01:00
|
|
|
<delete dir="${build.dir}" />
|
2013-03-16 08:27:42 +01:00
|
|
|
<delete dir="${download.dir}" />
|
2013-01-25 07:57:55 +01:00
|
|
|
</target>
|
|
|
|
|
|
|
|
|
2013-03-20 04:31:01 +01:00
|
|
|
</project>
|