-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
executable file
·29 lines (22 loc) · 1.05 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
<project name="ta-lib" basedir="." default="build">
<property name="debug" value="true" />
<property name="dir.src" value="src/" />
<property name="file.jar" value="ta-lib.jar" />
<property name="dir.classes" value="classes" />
<property name="dir.lib" value="lib" />
<target name="build" description="Build ta-lib.">
<echo message="Building project ${ant.project.name}"/>
<copy todir="${dir.classes}" includeEmptyDirs="false">
<fileset dir="${dir.src}" excludes="**/*.java"/>
</copy>
<javac srcdir="${dir.src}" destdir="${dir.classes}" debug="${debug}">
</javac>
<delete file="${file.jar}" />
<jar destfile="${file.jar}" basedir="${dir.classes}" />
</target>
<target name="clean" description="clean up all generated files.">
<echo message="Cleaning up project ${ant.project.name}"/>
<delete dir="${dir.classes}" />
<delete file="${file.jar}" />
</target>
</project>