-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
executable file
·63 lines (50 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
<project name="Distributed-AMUSE" default="build" basedir=".">
<description>
Build file for Distributed Amuse code
</description>
<property name="build.sysclasspath" value="ignore" />
<property name="version" value="" />
<path id="lib.jars">
<fileset dir="lib">
<include name="*/*.jar" />
</fileset>
</path>
<target name="build" depends="clean, compile" description="build everything" />
<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/distributed-amuse${version}.jar" basedir="build/classes" />
<!-- Copy external dependancies to dist directory -->
<copy todir="dist" flatten="true">
<fileset dir="lib">
<include name="*/*.jar" />
</fileset>
</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" >
<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">
<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" />
</target>
<target name="allclean" depends="clean" description="clean up everything">
<delete dir="doc/javadoc" />
</target>
</project>