-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
94 lines (82 loc) · 2.86 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version="1.0"?>
<!-- ant build file for tdxml project
Copyright (C) 2000-2010 Minnesota Department of Transportation
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. -->
<project default="jar" basedir=".">
<!-- Base directory configuration -->
<property name="src.dir" value="src"/>
<!-- Property configuration -->
<property file="project.properties"/>
<property file="${user.home}/.ant.properties"/>
<!-- Build directory configuration -->
<property name="build.dir" value="build"/>
<property name="build.lib" value="${build.dir}/lib"/>
<property name="build.src" value="${build.dir}/src"/>
<property name="build.classes" value="${build.dir}/classes"/>
<property name="build.docs" value="${build.dir}/docs"/>
<!-- Prepare the build directory -->
<target name="prepare">
<tstamp/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.lib}"/>
<mkdir dir="${build.src}"/>
<mkdir dir="${build.docs}"/>
<copy todir="${build.src}">
<fileset dir="${src.dir}">
<include name = "**/*.java" />
</fileset>
</copy>
</target>
<!-- Compile the source code -->
<target name="compile"
depends="prepare"
description="--> compile the source code">
<mkdir dir="${build.classes}"/>
<javac srcdir="${build.src}"
destdir="${build.classes}"
debug="${debug}"
deprecation="on"
source="1.5"
target="1.5">
<compilerarg value="-Xlint:unchecked"/>
</javac>
</target>
<!-- Create the jar file -->
<target name="jar"
depends="compile"
description="--> generate the ${name} jar files">
<jar jarfile="${build.lib}/${name}-${version}.jar">
<fileset dir="${build.classes}">
<include name="us/mn/state/dot/tdxml/**"/>
</fileset>
</jar>
</target>
<!-- Create api documentation -->
<target name="javadocs"
depends="prepare"
description="--> create the javadocs for the project">
<mkdir dir="${build.docs}"/>
<javadoc packagenames="${packages}"
sourcepath="${basedir}/${build.src}"
destdir="${build.docs}"
author="true"
version="true"
windowtitle="${name} API"
doctitle="${name}"
bottom="Copyright © Minnesota Department of
Transportation. All Rights Reserved.">
</javadoc>
</target>
<!-- Clean up build and distribution directories -->
<target name="clean"
description="--> clean up the created directories">
<delete dir="${build.dir}"/>
</target>
</project>