-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
50 lines (40 loc) · 1.46 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
<?xml version="1.0" encoding="UTF-8" ?>
<project name="quickstart" default="clean" basedir=".">
<description>
quick start build file
</description>
<!-- set global properties for this build -->
<property name="src.dir" location="src"/>
<property name="lib.dir" location="lib"/>
<property name="target" location="target"/>
<property name="dist" location="dist"/>
<path id="build.classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="init">
<!-- create the time stamp -->
<tstamp/>
<!-- create the build directory structure used by compile -->
<mkdir dir="${target}/classes"/>
<mkdir dir="${target}/test-classes"/>
</target>
<target name="compile" depends="init" description="compile the source ">
<!-- compile the jave code from ${src} to ${target} -->
<javac srcdir="${src.dir}/main/java" destdir="${target}/classes"
includeAntRuntime="no">
<classpath refid="build.classpath"/>
</javac>
</target>
<target name="test" depends="compile" description="test the function">
<javac srcdir="${src.dir}/test/java" destdir="${target}/test-classes"
classpath="${target}/classes"/>
</target>
<!-- <target name="run-test" depends="test" destdir="run test"> -->
<target name="clean" description="clean up">
<!-- delete the ${target} and ${dist} -->
<delete dir="${target}"/>
<delete dir="{dist}"/>
</target>
</project>