-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.xml
56 lines (45 loc) · 1.92 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0" encoding="UTF-8"?>
<project name="Weeping Angels" basedir="../../../" default="main">
<!-- Properties -->
<property name="mcp.dir" location="mcp"/>
<property name="src.dir" location="${mcp.dir}/src/minecraft"/>
<property name="reobf.dir" location="${mcp.dir}/reobf/minecraft"/>
<property name="build.dir" location="${mcp.dir}/build"/>
<property name="dist.dir" location="${mcp.dir}/dist"/>
<property name="wa.version" value="1510"/>
<property name="minecraft.version" value="152"/>
<property name="forge.version" value="7.8.0.708"/>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="recompile" depends="clean">
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows">
<arg line="/c recompile.bat"/>
</exec>
</target>
<target name="reobfuscate" depends="recompile">
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows">
<arg line="/c reobfuscate.bat"/>
</exec>
</target>
<target name="build" depends="reobfuscate">
<mkdir dir="${build.dir}/"/>
<copy todir="${build.dir}/">
<fileset dir="${reobf.dir}"/>
</copy>
<copy todir="${build.dir}/resources">
<fileset dir="${src.dir}/resources"/>
</copy>
<copy todir="${build.dir}/mods">
<fileset dir="${src.dir}/mods"/>
</copy>
<copy file="${src.dir}/mcmod.info" todir="${build.dir}/"/>
<copy file="${src.dir}/build.xml" todir="${build.dir}"/>
</target>
<target name="package" depends="build">
<!-- Zip the build -->
<zip destfile="${dist.dir}/${minecraft.version}-${wa.version}WeepingAngels.zip" basedir="${build.dir}" excludes="build.xml"/>
</target>
<target name="main" depends="package"/>
</project>