Step 1: The Purge

This commit is contained in:
AbrarSyed 2013-12-13 03:17:08 -06:00
parent fd05e3b8fe
commit bb3fed7bb8
5 changed files with 0 additions and 206 deletions

119
build.xml
View File

@ -1,119 +0,0 @@
<?xml version="1.0" ?>
<project name="Equivalent Exchange 3" default="build">
<!-- Public property files-->
<property file="build.properties" prefix="build" />
<property file="environment.properties" prefix="environment" />
<property file="private.properties" prefix="private" />
<!-- Minecraft Forge -->
<property name="minecraftforge_src_archive" value="minecraftforge-src-${build.minecraft_version}-${build.forge_version}.zip" />
<property name="minecraftforge_src_archive_location" value="http://files.minecraftforge.net/minecraftforge/${minecraftforge_src_archive}" />
<target name="forge-clean">
<delete dir="${environment.base_location}/forge" />
</target>
<target name="forge-download">
<mkdir dir="${environment.base_location}/temp" />
<get src="${minecraftforge_src_archive_location}" dest="${environment.base_location}/temp/" verbose="true" usetimestamp="true" />
</target>
<target name="forge-uncompress" depends="forge-download">
<unzip src="${environment.base_location}/temp/${minecraftforge_src_archive}" dest="${environment.base_location}" />
<delete dir="${environment.base_location}/temp" />
</target>
<target name="forge-install" depends="forge-uncompress">
<exec dir="${environment.base_location}/forge/" executable="cmd.exe" osfamily="windows" failonerror="true">
<arg value="/c" />
<arg value="${environment.base_location}\forge\install.cmd" />
</exec>
<exec dir="${environment.base_location}/forge/" executable="bash" osfamily="unix" failonerror="true">
<arg line="install.sh" />
</exec>
</target>
<target name="forge-clean-install" depends="forge-clean, forge-install" />
<target name="clean">
<delete dir="${environment.base_location}/temp" />
<delete file="${environment.mcp_location}/src/minecraft/mcmod.info" />
<delete file="${environment.mcp_location}/src/minecraft/pack.mcmeta" />
<delete dir="${environment.mcp_location}/src/minecraft/com/pahimar" />
<delete dir="${environment.mcp_location}/reobf/minecraft" />
</target>
<target name="increment_build_number">
<propertyfile file="build.properties">
<entry key="build_number" type="int" operation="+" default="1" />
</propertyfile>
</target>
<target name="prep">
<copy todir="${environment.mcp_location}/src/minecraft">
<fileset dir="${environment.source_location}/common/" />
</copy>
</target>
<target name="replace_tokens">
<replace dir="${environment.mcp_location}/src/minecraft/com/pahimar" token="@VERSION@" value="${build.mod_version}" />
<replace dir="${environment.mcp_location}/src/minecraft/com/pahimar" token="@FINGERPRINT@" value="${private.fingerprint_signature}" />
<replace dir="${environment.mcp_location}/src/minecraft/com/pahimar" token="@BUILD_NUMBER@" value="${build.build_number}" />
</target>
<target name="recompile">
<exec dir="${environment.mcp_location}" executable="cmd" osfamily="windows">
<arg line="/c recompile.bat" />
</exec>
<exec dir="${environment.mcp_location}" executable="bash" osfamily="unix">
<arg line="recompile.sh" />
</exec>
</target>
<target name="reobfuscate">
<exec dir="${environment.mcp_location}" executable="cmd" osfamily="windows">
<arg line="/c reobfuscate_srg.bat" />
</exec>
<exec dir="${environment.mcp_location}" executable="bash" osfamily="unix">
<arg line="reobfuscate_srg.sh" />
</exec>
</target>
<target name="sign_jar">
<signjar jar="${environment.release_location}/MC ${build.minecraft_version}/${build.mod_version}/ee3-universal-${build.mod_version}-${build.build_number}.jar" keystore="${private.keystore_location}" alias="${private.keystore_user_alias}" storepass="${private.keystore_user_password}" />
</target>
<target name="build" depends="clean, increment_build_number, prep, recompile, reobfuscate">
<!-- Build the jar -->
<mkdir dir="${environment.release_location}/MC ${build.minecraft_version}/${build.mod_version}" />
<jar destfile="${environment.release_location}/MC ${build.minecraft_version}/${build.mod_version}/ee3-universal-${build.mod_version}-${build.build_number}.jar">
<fileset dir="${environment.mcp_location}/src/minecraft/" includes="mcmod.info" />
<fileset dir="${environment.mcp_location}/src/minecraft/" includes="pack.mcmeta" />
<fileset dir="${environment.mcp_location}/reobf/minecraft" />
<fileset dir="${environment.source_location}/resources" excludes="**/xcf/**" />
</jar>
<!-- Clean up the MCP source now that we are done -->
<antcall target="clean" />
</target>
<target name="release" depends="clean, increment_build_number, prep, replace_tokens, recompile, reobfuscate">
<!-- Build the jar -->
<mkdir dir="${environment.release_location}/MC ${build.minecraft_version}/${build.mod_version}" />
<jar destfile="${environment.release_location}/MC ${build.minecraft_version}/${build.mod_version}/ee3-universal-${build.mod_version}-${build.build_number}.jar">
<fileset dir="${environment.mcp_location}/src/minecraft/" includes="mcmod.info" />
<fileset dir="${environment.mcp_location}/src/minecraft/" includes="pack.mcmeta" />
<fileset dir="${environment.mcp_location}/reobf/minecraft" />
<fileset dir="${environment.source_location}/resources" excludes="**/xcf/**" />
</jar>
<!-- Sign the finished jar -->
<antcall target="sign_jar" />
<!-- Clean up the MCP source now that we are done -->
<antcall target="clean" />
</target>
</project>

View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="common"/>
<classpathentry kind="src" path="resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/Minecraft"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@ -1,71 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Equivalent-Exchange-3</name>
<comment></comment>
<projects>
<project>Minecraft</project>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>build.properties</name>
<type>1</type>
<locationURI>WORKSPACE_LOC/Equivalent-Exchange-3/build.properties</locationURI>
</link>
<link>
<name>build.xml</name>
<type>1</type>
<locationURI>WORKSPACE_LOC/Equivalent-Exchange-3/build.xml</locationURI>
</link>
<link>
<name>common</name>
<type>2</type>
<locationURI>WORKSPACE_LOC/Equivalent-Exchange-3/common</locationURI>
</link>
<link>
<name>environment.properties</name>
<type>1</type>
<locationURI>WORKSPACE_LOC/Equivalent-Exchange-3/environment.properties</locationURI>
</link>
<link>
<name>environment.properties_sample</name>
<type>1</type>
<locationURI>WORKSPACE_LOC/Equivalent-Exchange-3/environment.properties_sample</locationURI>
</link>
<link>
<name>private.properties</name>
<type>1</type>
<locationURI>WORKSPACE_LOC/Equivalent-Exchange-3/private.properties</locationURI>
</link>
<link>
<name>resources</name>
<type>2</type>
<locationURI>WORKSPACE_LOC/Equivalent-Exchange-3/resources</locationURI>
</link>
<link>
<name>version.xml</name>
<type>1</type>
<locationURI>WORKSPACE_LOC/Equivalent-Exchange-3/version.xml</locationURI>
</link>
</linkedResources>
<filteredResources>
<filter>
<id>1378220747136</id>
<name></name>
<type>6</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-true-COPYING|COPYING.LESSER|README.md</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

View File

@ -1,4 +0,0 @@
base_location=D:/development/
source_location=${base_location}/eclipse/Equivalent-Exchange-3
mcp_location=${base_location}/forge/mcp
release_location=D:/Dropbox/Public/EE3

View File

@ -1,4 +0,0 @@
fingerprint_signature=FINGERPRINT
keystore_location=PATH_TO_KEYSTORE_LOCATION
keystore_user_alias=USERNAME
keystore_user_password=PASSWORD