-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
53 lines (43 loc) · 1.57 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
<?xml version="1.0"?>
<project name="dao-api" default="help" basedir=".">
<description>
Builds the DAO API classes and generates its .jar file.
</description>
<!-- temporary directory for compiled files -->
<property name="build" location="${basedir}/_build" />
<!-- directory containing source code -->
<property name="src" location="${basedir}/src" />
<!-- temporary directory to hold generated .jar file -->
<property name="dist" location="${basedir}/_dist" />
<!-- generated .jar file name -->
<property name="dao-api.jar" location="${dist}/dao-api-1.1.2.jar" />
<!-- directory to hold generated javadoc files -->
<property name="doc" location="${basedir}/doc" />
<path id="app-path">
<pathelement path="${classpath}"/>
<fileset dir="${basedir}/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="help">
<loadfile property="help-file" srcFile="help.txt" encoding="UTF-8" />
<echo message="${help-file}" />
</target>
<target name="clean">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
<target name="compile">
<echo message="Compiling module: ${src}" />
<mkdir dir="${build}" />
<javac srcdir="${src}" destdir="${build}" debug="true" encoding="UTF-8" classpathref="app-path" />
</target>
<target name="build" depends="clean, compile">
<mkdir dir="${dao-api.jar}/.." />
<jar destfile="${dao-api.jar}" basedir="${build}" />
</target>
<target name="doc">
<mkdir dir="${doc}" />
<javadoc destdir="${doc}" sourcepath="${src};" packagenames="*" private="true" />
</target>
</project>