tterrag1098

Untitled

Sep 22nd, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.73 KB | None | 0 0
  1.  
  2. <?xml version="1.0"?>
  3. -<project default="build" name="Equivalent Exchange 3">
  4. <!-- Public property files-->
  5.  <property prefix="build" file="build.properties"/> <property prefix="environment" file="environment.properties"/>
  6. <!-- Private property files private.properties only contains the following properties; fingerprint_signature keystore_location keystore_user_alias keystore_user_password These properties are used to properly sign the compiled jar in the 'release' target For the majority of you this is not a concern and you will not need values for these - just use the 'build' target -->
  7.  <property prefix="private" file="private.properties"/>
  8. <!-- Minecraft Forge -->
  9.  <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 usetimestamp="true" verbose="true" dest="${environment.base_location}/temp/" src="${minecraftforge_src_archive_location}"/> </target> -<target name="forge-uncompress" depends="forge-download, forge-clean"> <unzip dest="${environment.base_location}" src="${environment.base_location}/temp/${minecraftforge_src_archive}"/> <delete dir="${environment.base_location}/temp"/> </target> -<target name="forge-install" depends="forge-uncompress"> -<exec dir="${environment.base_location}/forge/" failonerror="true" osfamily="windows" executable="cmd.exe"> <arg value="/c"/> <arg value="${environment.base_location}\forge\install.cmd"/> </exec> -<exec dir="${environment.base_location}/forge/" failonerror="true" osfamily="unix" executable="bash"> <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 default="1" operation="+" type="int" key="build_number"/> </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" value="${build.mod_version}" token="@VERSION@"/> <replace dir="${environment.mcp_location}/src/minecraft/com/pahimar" value="${private.fingerprint_signature}" token="@FINGERPRINT@"/> <replace dir="${environment.mcp_location}/src/minecraft/com/pahimar" value="${build.build_number}" token="@BUILD_NUMBER@"/> </target> -<target name="recompile"> -<exec dir="${environment.mcp_location}" osfamily="windows" executable="cmd"> <arg line="/c recompile.bat"/> </exec> -<exec dir="${environment.mcp_location}" osfamily="unix" executable="bash"> <arg line="recompile.sh"/> </exec> </target> -<target name="reobfuscate"> -<exec dir="${environment.mcp_location}" osfamily="windows" executable="cmd"> <arg line="/c reobfuscate_srg.bat"/> </exec> -<exec dir="${environment.mcp_location}" osfamily="unix" executable="bash"> <arg line="reobfuscate_srg.sh"/> </exec> </target> -<target name="sign_jar"> <signjar storepass="${private.keystore_user_password}" alias="${private.keystore_user_alias}" keystore="${private.keystore_location}" jar="${environment.release_location}/MC ${build.minecraft_version}/${build.mod_version}/ee3-universal-${build.mod_version}-${build.build_number}.jar"/> </target> -<target name="build">
  10. <!-- Prep for the build -->
  11.  <antcall target="clean"/> <antcall target="increment_build_number"/> <antcall target="prep"/> <antcall target="recompile"/> <antcall target="reobfuscate"/>
  12. <!-- Build the jar -->
  13.  <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>
  14. <!-- Clean up the MCP source now that we are done -->
  15.  <antcall target="clean"/> </target> -<target name="release">
  16. <!-- Prep for the build -->
  17.  <antcall target="clean"/> <antcall target="increment_build_number"/> <antcall target="prep"/> <antcall target="replace_tokens"/> <antcall target="recompile"/> <antcall target="reobfuscate"/>
  18. <!-- Build the jar -->
  19.  <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>
  20. <!-- Sign the finished jar -->
  21.  <antcall target="sign_jar"/>
  22. <!-- Clean up the MCP source now that we are done -->
  23.  <antcall target="clean"/> </target> </project>
Advertisement
Add Comment
Please, Sign In to add comment