blob: b6b95dff7a2aaa7e4878802321d93542a18674ec (
plain)
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
|
<?xml version="1.0"?>
<project name="jettison" default="jar" basedir=".">
<!-- some properties -->
<property name="src.dir" value="org/codehaus/jettison" />
<property name="build.dir" value="build" />
<property name="docs.dir" value="docs" />
<property name="lib.dir" value="lib"/>
<property name="dist.dir" value="dist" />
<property name="jarfile" value="${dist.dir}/jettison.jar" />
<property name="pkg" value="${package.name}"/>
<property name="target.jdk" value="1.5" />
<available file="${lib}" type="dir" property="libdir.exists"/>
<!-- init -->
<target name="init">
<tstamp/>
<mkdir dir="${dist.dir}" />
<mkdir dir="${build.dir}" />
<mkdir dir="${docs.dir}" />
</target>
<!-- compile everything -->
<target name="compile" depends="init">
<mkdir dir="${build.dir}" />
<javac srcdir="${src.dir}"
destdir="${build.dir}"
source="${target.jdk}"
target="${target.jdk}"
classpath="${gentoo.classpath}">
</javac>
</target>
<!-- build the jar file -->
<target name="jar" depends="compile">
<jar jarfile="${jarfile}" basedir="${build.dir}" />
</target>
<!-- generate javadocs -->
<target name="javadoc" depends="compile">
<javadoc packagenames="org.*"
sourcepath="${src.dir}"
defaultexcludes="yes"
destdir="./${docs.dir}"
author="true"
version="true"
use="true"
windowtitle="${ant.project.name} API" >
<fileset dir="${src.dir}"/>
</javadoc>
</target>
<!-- clean up -->
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${docs.dir}" />
<delete dir="${dist.dir}" />
</target>
</project>
|