-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
80 lines (63 loc) · 2.89 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
<project name="eAstroViz" default="build" basedir=".">
<description>
Build file for eAstroViz
</description>
<property name="build.sysclasspath" value="ignore" />
<property name="version" value="" />
<path id="lib.jars">
<fileset dir="lib">
<include name="*.jar" />
<!-- Exclude library used to generate graphs in javadoc -->
<exclude name="apiviz-*.jar" />
</fileset>
</path>
<target name="build" depends="clean, compile" description="build everything" />
<target name="test" description="run the unit tests with coverage" depends="build">
<ant dir="test" target="test" />
</target>
<target name="test-integration" description="run the integration tests" depends="build">
<ant dir="test" target="test-integration" />
</target>
<target name="examples" description="compile the examples" depends="build">
<ant dir="examples" target="build" />
</target>
<target name="compile" description="compile the source ">
<mkdir dir="build/classes" />
<mkdir dir="dist" />
<!-- Compile the java code from src into classes -->
<javac srcdir="src" destdir="build/classes" debug="on">
<classpath refid="lib.jars" />
</javac>
<!-- Put everything in classes into the jar file -->
<jar jarfile="dist/eAstroViz${version}.jar" basedir="build/classes" />
<!-- Copy external dependancies to dist directory -->
<copy todir="dist">
<fileset dir="lib" />
</copy>
<copy todir="dist/colormaps">
<fileset dir="colormaps" />
</copy>
</target>
<target name="javadoc" description="generate javadoc for users">
<delete dir="doc/javadoc" />
<javadoc destdir="doc/javadoc" access="public" use="true" notree="false" nonavbar="false" sourcepath="src" noindex="false" splitindex="true" version="true" nodeprecatedlist="false" nodeprecated="false" verbose="false" doclet="org.jboss.apiviz.APIviz" docletpath="lib/apiviz-1.3.2.GA.jar" additionalparam="-author -version -keywords -sourceclasspath build/classes">
<link href="http://docs.oracle.com/javase/7/docs/api/" />
<classpath refid="lib.jars" />
</javadoc>
</target>
<target name="javadoc-devel" description="generate javadoc for developers">
<delete dir="doc/javadoc-devel" />
<javadoc destdir="doc/javadoc-devel" access="private" use="true" notree="false" nonavbar="false" sourcepath="src" noindex="false" splitindex="true" version="true" nodeprecatedlist="false" nodeprecated="false" verbose="false" doclet="org.jboss.apiviz.APIviz" additionalparam="-author -version -keywords -sourceclasspath build/classes" docletpath="lib/apiviz-1.3.2.GA.jar">
<link href="http://docs.oracle.com/javase/7/docs/api/" />
<classpath refid="lib.jars" />
</javadoc>
</target>
<target name="clean" description="clean up">
<delete dir="build" />
<delete dir="dist" />
<ant dir="test" target="clean" />
</target>
<target name="allclean" depends="clean" description="clean up everything">
<delete dir="doc/javadoc" />
</target>
</project>