-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
93 lines (88 loc) · 3.8 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<project>
<target name="clean">
<delete dir="build"/>
</target>
<target name="dist" depends="clean">
<!-- Random terminal generator -->
<antcall target="jar">
<param name="JarName" value="Random-Automatic-Plain"/>
<param name="MainClass" value="AutomaticRandom"/>
<param name="TerminalSet" value=""/>
</antcall>
<antcall target="jar">
<param name="JarName" value="Random-Automatic-Plain-Pair"/>
<param name="MainClass" value="AutomaticRandom"/>
<param name="TerminalSet" value="--pair-brackets"/>
</antcall>
<antcall target="jar">
<param name="JarName" value="Random-Manual-Plain"/>
<param name="MainClass" value="ManualRandom"/>
<param name="TerminalSet" value=""/>
</antcall>
<antcall target="jar">
<param name="JarName" value="Random-Manual-Plain-Pair"/>
<param name="MainClass" value="ManualRandom"/>
<param name="TerminalSet" value="--pair-brackets"/>
</antcall>
<!-- Formula Suffle terminal generator -->
<antcall target="jar">
<param name="JarName" value="Shuffle-Automatic-Plain"/>
<param name="MainClass" value="AutomaticShuffle"/>
<param name="TerminalSet" value=""/>
</antcall>
<antcall target="jar">
<param name="JarName" value="Shuffle-Automatic-Plain-Pair"/>
<param name="MainClass" value="AutomaticShuffle"/>
<param name="TerminalSet" value="--pair-brackets"/>
</antcall>
<antcall target="jar">
<param name="JarName" value="Shuffle-Automatic-Compact"/>
<param name="MainClass" value="AutomaticShuffle"/>
<param name="TerminalSet" value="--compact"/>
</antcall>
<antcall target="jar">
<param name="JarName" value="Shuffle-Automatic-Compact-Pair"/>
<param name="MainClass" value="AutomaticShuffle"/>
<param name="TerminalSet" value="--compact --pair-brackets"/>
</antcall>
<antcall target="jar">
<param name="JarName" value="Shuffle-Manual-Plain"/>
<param name="MainClass" value="ManualShuffle"/>
<param name="TerminalSet" value=""/>
</antcall>
<antcall target="jar">
<param name="JarName" value="Shuffle-Manual-Plain-Pair"/>
<param name="MainClass" value="ManualShuffle"/>
<param name="TerminalSet" value="--pair-brackets"/>
</antcall>
<antcall target="jar">
<param name="JarName" value="Shuffle-Manual-Compact"/>
<param name="MainClass" value="ManualShuffle"/>
<param name="TerminalSet" value="--compact"/>
</antcall>
<antcall target="jar">
<param name="JarName" value="Shuffle-Manual-Compact-Pair"/>
<param name="MainClass" value="ManualShuffle"/>
<param name="TerminalSet" value="--compact --pair-brackets"/>
</antcall>
</target>
<target name="jar" depends="compile">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/${JarName}.jar" basedir="build/classes">
<manifest>
<attribute name="Main-Class" value="com.yarcat.chemistrylines.swing.release.${MainClass}"/>
</manifest>
</jar>
</target>
<target name="compile" depends="gen">
<mkdir dir="build/classes"/>
<javac srcdir="Lib/src" destdir="build/classes"/>
<javac srcdir="Swing/src" destdir="build/classes"/>
</target>
<target name="gen">
<exec executable="sh" newenvironment="false" dir="Tools">
<arg value="-xc"/>
<arg value="./gen.sh --unique-elements ${TerminalSet}"/>
</exec>
</target>
</project>