-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
85 lines (73 loc) · 2.09 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
<?xml version="1.0" encoding="UTF-8"?>
<project>
<!-- ===== Paths ===== -->
<path id="src.path">
<pathelement path="src"/>
</path>
<path id="javac.path">
<path refid="src.path"/>
<fileset dir="lib" includes="*.jar"/>
</path>
<path id="test.path">
<path refid="javac.path"/>
<pathelement path="build"/>
</path>
<!-- ===== Settings ===== -->
<presetdef name="javac">
<javac includeantruntime="false" />
</presetdef>
<!-- ===== Targets ===== -->
<target name="clean">
<delete dir="build"/>
<delete dir="dest-client"/>
<delete dir="doc"/>
<mkdir dir="build"/>
<mkdir dir="dest-client"/>
<mkdir dir="doc"/>
</target>
<target name="javac">
<mkdir dir="build"/>
<javac destdir="build">
<src path="src"/>
<classpath refid="javac.path"/>
</javac>
</target>
<target name="compile" depends="libs, javac, doxygen">
<mkdir dir="dest-client"/>
<jar destfile="dest-client/ija-client.jar" basedir="build">
<manifest>
<attribute name="Main-Class" value="ija.proj.gui.Main"/>
</manifest>
<fileset dir="src" includes="ija/proj/gui/img/blocks/**" />
</jar>
</target>
<target name="test" depends="compile">
<junit fork="true" printsummary="yes" haltonfailure="no">
<classpath refid="test.path"/>
<batchtest>
<fileset dir="build">
<include name="**/test/*Test.class"/>
</fileset>
</batchtest>
<formatter type="plain" usefile="false"/>
</junit>
</target>
<target name="run" depends="compile">
<java jar="dest-client/ija-client.jar" fork="true"/>
</target>
<target name="libs">
<exec executable="/bin/bash">
<arg value="lib/get-libs.sh"/>
</exec>
</target>
<target name="doxygen" depends="libs">
<taskdef name="doxygen" classname="org.doxygen.tools.DoxygenTask" classpath="lib/ant_doxygen.jar" />
<doxygen doxygenPath="doxygen">
<property name="INPUT" value="src" />
<property name="RECURSIVE" value="yes" />
<property name="GENERATE_LATEX" value="false" />
<property name="PROJECT_NAME" value="BlockEditor" />
<property name="HTML_OUTPUT" value="../doc" />
</doxygen>
</target>
</project>