-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
75 lines (60 loc) · 2.48 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
<project name="AetherIO" default="build" basedir=".">
<description>
Build file for AetherIO
</description>
<property name="src" location="src" />
<property name="compile" location="compile" />
<property name="tmp" location="tmp" />
<property name="lib" location="lib" />
<property name="javadoc" location="doc/javadoc" />
<property name="dist" location="dist" />
<property name="build.sysclasspath" value="ignore"/>
<property name="version-tag" value="1.0" />
<property name="jar" location="${dist}/${ant.project.name}-${version-tag}.jar" />
<property name="sources" value="${dist}/${ant.project.name}-src-${version-tag}.zip" />
<path id="external_jars">
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
</path>
<target name="build" description="Build the AetherIO distribution.">
<!-- Create the time stamp -->
<tstamp />
<!-- Create the build directory structure used by compile -->
<delete dir="${tmp}" />
<mkdir dir="${dist}" />
<mkdir dir="${tmp}" />
<!-- Compile the java code from ${src} into ${compile} -->
<javac srcdir="src" destdir="${tmp}" debug="on">
<classpath refid="external_jars" />
<!-- <compilerarg value="-Xlint:unchecked" /> -->
</javac>
<!-- Put everything in ${compile} into the jar file -->
<jar jarfile="${jar}" basedir="${tmp}">
<manifest>
<attribute name="Ibisc-Component" value="nl.esciencecenter.aether.io.rewriter.ASMIOGenerator" />
</manifest>
<metainf dir=".." includes="LICENSE.txt" />
</jar>
<!-- create a zip file with the sources -->
<zip destfile="${sources}">
<zipfileset dir="src" includes="**/*.java" />
<zipfileset dir="." includes="LICENSE"/>
</zip>
<!-- And delete the build dir -->
<delete dir="${tmp}" />
</target>
<target name="javadoc" description="create javadoc">
<delete dir="${javadoc}" />
<mkdir dir="${javadoc}" />
<javadoc destdir="${javadoc}" access="public" sourcepath="${src}">
<classpath refid="external_jars" />
<link href="http://download.oracle.com/javase/1.7.0/docs/api/" />
</javadoc>
</target>
<target name="clean" description="clean up">
<delete dir="${dist}" />
<delete dir="${tmp}" />
<delete dir="${javadoc}" />
</target>
</project>