-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
77 lines (65 loc) · 2.04 KB
/
build.xml
File metadata and controls
77 lines (65 loc) · 2.04 KB
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
<?xml version="1.0"?>
<project default="build">
<path id="ant.classpath">
<fileset dir="./" includes="ant-lib/*.jar" />
</path>
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
<classpath refid="ant.classpath" />
</taskdef>
<path id="classpath">
<pathelement location="bin"/>
</path>
<target name="xjc" description="Generate JAXB source files">
<echo message="Compiling the schema..." />
<mkdir dir="gen-src"/>
<xjc schema="mugl-schema/mugl.xsd" package="org.multigraph.jaxb" destdir="gen-src">
<produces dir="gen-src/org/multigraph/jaxb" includes="**/*.java" />
</xjc>
</target>
<target name="init">
<mkdir dir="bin"/>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target name="distclean">
<delete dir="bin"/>
<delete dir="gen-src"/>
<delete dir="doc/javadoc"/>
</target>
<target depends="init,xjc" name="build">
<javac debug="true" destdir="bin" includeantruntime="false">
<classpath refid="classpath"/>
<src path="gen-src"/>
<src path="src"/>
</javac>
</target>
<!-- run the UITest test program on the file 'graph2.xml': -->
<target name="graph2">
<java classname="org.multigraph.UITest" fork="true">
<arg line="graph2.xml"/>
<classpath>
<pathelement location="bin"/>
</classpath>
</java>
</target>
<!-- run the UITest test program on the file 'graph3.xml': -->
<target name="graph3">
<java classname="org.multigraph.UITest" fork="true">
<arg line="graph3.xml"/>
<classpath>
<pathelement location="bin"/>
</classpath>
</java>
</target>
<target name="javadoc" depends="xjc">
<mkdir dir="doc/javadoc"/>
<javadoc packagenames="org.multigraph.*"
destdir="doc/javadoc"
windowtitle="Test API">
<fileset dir="src" includes="**/*.java" />
<fileset dir="gen-src" includes="**/*.java" />
<doctitle><![CDATA[<h1>Multigraph</h1>]]></doctitle>
</javadoc>
</target>
</project>