-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
78 lines (62 loc) · 2.34 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="JPHL" default="release" basedir=".">
<description>Builds, tests, and runs the project.</description>
<!-- add extra parameter to javadoc generation if Java 1.8 is used -->
<condition property="javadoc.additionalparam" value="-notimestamp -Xdoclint:none" else="-notimestamp">
<equals arg1="${ant.java.version}" arg2="1.8" />
</condition>
<!-- defines the version number -->
<property name="version" value="0.0.1" />
<target name="release" depends="jars, javadoc">
</target>
<target name="clean" depends="end-clean">
<delete dir="jars" failonerror="true" />
</target>
<target name="end-clean">
<delete dir="build/lib" failonerror="true" />
<delete dir="build" failonerror="true" />
</target>
<target name="prepare" depends="clean">
<mkdir dir="build" />
<mkdir dir="build/lib" />
<mkdir dir="jars" />
</target>
<target name="clean-javadoc">
<delete includeEmptyDirs="true" failonerror="true">
<fileset dir="doc" includes="**/*" defaultexcludes="yes">
<exclude name="doc/.svn" />
</fileset>
</delete>
</target>
<target name="javadoc-api" depends="clean-javadoc">
<javadoc destdir="doc" source="1.7" notree="false" nonavbar="false" noindex="false" splitindex="true" access="public" use="true" author="Fabian Praßer" version="${version}" windowtitle="Java High Performance Lattice Library" private="false" failonerror="true" additionalparam="${javadoc.additionalparam}">
<classpath>
<path path="src/main" />
</classpath>
<packageset dir="src/main/" defaultexcludes="yes">
</packageset>
</javadoc>
</target>
<target name="javadoc" depends="javadoc-api">
</target>
<target name="compile" depends="prepare" description="compile the source ">
<javac includeantruntime="false" srcdir="src/main/" destdir="build/lib" source="1.7">
<classpath>
<path path="src/main" />
</classpath>
</javac>
</target>
<target name="jar-libs" depends="compile">
<jar destfile="jars/jhpl-${version}.jar">
<fileset dir="build/lib" defaultexcludes="no" />
</jar>
</target>
<target name="jar-docs" depends="compile, javadoc">
<jar destfile="jars/jhpl-${version}-doc.jar">
<fileset dir="doc" defaultexcludes="no" />
</jar>
</target>
<target name="jars" depends="jar-libs, jar-docs">
<antcall target="end-clean" />
</target>
</project>