1
|
|
2
|
|
3
|
<project name="sitools-update-classpath" default="all" basedir=".">
|
4
|
|
5
|
|
6
|
|
7
|
<property name="name" value="sitools-update-classpath"/>
|
8
|
<property name="src" value="src"/>
|
9
|
<property name="conf" value="conf"/>
|
10
|
<property name="build" value="build"/>
|
11
|
<property name="build.classes" value="${build}/classes"/>
|
12
|
<property name="build.doc" value="${build}/api"/>
|
13
|
<property name="build.lib" value="."/>
|
14
|
<property name="packagenames" value="gnu.getopt.*, fr.cnes.sitools.common"/>
|
15
|
|
16
|
|
17
|
|
18
|
|
19
|
<target name="prepare">
|
20
|
<mkdir dir="${src}"/>
|
21
|
<mkdir dir="${build}"/>
|
22
|
<mkdir dir="${build.classes}"/>
|
23
|
<mkdir dir="${build.lib}"/>
|
24
|
<mkdir dir="${build.doc}"/>
|
25
|
|
26
|
|
27
|
|
28
|
</target>
|
29
|
|
30
|
|
31
|
<target name="clean">
|
32
|
<delete dir="${build}"/>
|
33
|
<delete dir="${src}"/>
|
34
|
</target>
|
35
|
|
36
|
|
37
|
<target name="classes" depends="prepare">
|
38
|
<javac srcdir="${src}" destdir="${build.classes}" debug="on"
|
39
|
optimize="on"/>
|
40
|
<copy todir="${build.classes}">
|
41
|
<fileset dir="${src}">
|
42
|
<include name="**/*.properties"/>
|
43
|
</fileset>
|
44
|
</copy>
|
45
|
</target>
|
46
|
|
47
|
|
48
|
<target name="jar" depends="classes">
|
49
|
<jar jarfile="${build.lib}/${name}.jar" manifest="${conf}/MANIFEST.MF" basedir="${build.classes}" />
|
50
|
</target>
|
51
|
|
52
|
|
53
|
<target name="javadoc" depends="prepare">
|
54
|
<javadoc sourcepath="${src}"
|
55
|
destdir="${build.doc}"
|
56
|
doctitle="${name} JavaDoc"
|
57
|
windowtitle="${name} JavaDoc"
|
58
|
package="true"
|
59
|
author="true"
|
60
|
version="true"
|
61
|
packagenames="${packagenames}"
|
62
|
/>
|
63
|
</target>
|
64
|
|
65
|
|
66
|
<target name="all" depends="jar,javadoc"/>
|
67
|
|
68
|
</project>
|
69
|
|