forked from billythegoat101/Runic-Dust-Mod-Borked
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
72 lines (56 loc) · 3.24 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" ?>
<!-- Most things edited or copied from pahimar's EE3 build.xml as I am still learning ant. -->
<project name="Runic Dust Mod">
<property file="build.properties" />
<target name="recompile">
<exec dir="${dir.development.mcp}" executable="cmd" os="Windows 7">
<arg line="/c recompile.bat" />
</exec>
</target>
<target name="reobfuscate">
<exec dir="${dir.development.mcp}" executable="cmd" os="Windows 7">
<arg line="/c reobfuscate.bat" />
</exec>
</target>
<target name="release-beta">
<!-- Prep for the release -->
<!-- andcall target="clean" /-->
<!-- antcall target="build" /-->
<antcall target="recompile" />
<antcall target="reobfuscate" />
<!-- Build the jar -->
<jar destfile="${dir.development}\releases\test-dustmod-v${release.mod.version}.jar">
<fileset dir="${dir.development.cmp}\src\" includes="mcmod.info" />
<fileset dir="${dir.development.mcp}\reobf\minecraft\" />
<fileset dir="${dir.development.mcp}\src\resource\" />
</jar>
<!-- Put a copy in my Beta DB share -->
<mkdir dir="${dir.beta}\${release.minecraft.version}\${release.mod.version}" />
<move file="${dir.development}\releases\test-dustmod-v${release.mod.version}.jar" todir="${dir.beta}\${release.minecraft.version}\${release.mod.version}" />
<!-- copy file="${dir.beta}\${release.minecraft.version}\${release.mod.version}" toDir="${dir.development.test}" /-->
<!-- Clean up the MCP source now that we are done -->
<!-- antcall target="clean" /-->
</target>
<target name="release-final">
<!-- Prep for the release -->
<!-- andcall target="clean" /-->
<!-- antcall target="build" /-->
<antcall target="recompile" />
<antcall target="reobfuscate" />
<!-- Build the jar -->
<jar destfile="${dir.development}\releases\dustmod-v${release.mod.version}.jar">
<fileset dir="${dir.development.cmp}\src\" includes="mcmod.info" />
<fileset dir="${dir.development.mcp}\reobf\minecraft\" />
<fileset dir="${dir.development.mcp}\src\resource\" />
</jar>
<!-- Put a copy in my Beta DB share -->
<mkdir dir="${dir.beta}\${release.minecraft.version}\${release.mod.version}" />
<move file="${dir.development}\releases\dustmod-v${release.mod.version}.jar" todir="${dir.beta}\${release.minecraft.version}\${release.mod.version}" />
<!-- Put a copy in my Release DB share -->
<mkdir dir="${dir.release}\${release.minecraft.version}\${release.mod.version}" />
<move file="${dir.development}\releases\dustmod-v${release.mod.version}.jar" todir="${dir.release}\${release.minecraft.version}\${release.mod.version}" />
<!-- copy file="${dir.beta}\${release.minecraft.version}\${release.mod.version}" toDir="${dir.development.test}" /-->
<!-- Clean up the MCP source now that we are done -->
<!-- antcall target="clean" /-->
</target>
</project>