forked from sjsu-cmpe/petronas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
66 lines (47 loc) · 1.56 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="ThinDFS" default="help" basedir=".">
<!-- ========================================= -->
<target name='help'>
<echo>
Thin DFS - Prototype implementation
Requires:
1. Java JRE 1.6.x
2. Junit JAR classpath should be updated in the ANT
Build Notes:
1. Build the jar from source files
Primary Targets:
</echo>
</target>
<!-- ========================================= -->
<target name="init">
<property name="src.dir" value="${basedir}/src"/>
<property name="bin.dir" value="${basedir}/bin" />
<property name="build.dir" value="${basedir}/build" />
<property name="jar.name" value="TDFS-1.0-beta" />
<path id="build.classpath">
<pathelement location='${basedir}/bin' />
<pathelement location='${basedir}/log4j-1.2.16.jar' />
</path>
</target>
<target name="clean" depends="init">
<delete dir="${bin.dir}" quiet="true" />
<delete dir="${build.dir}" quiet="true" />
</target>
<target name="build" depends="init">
<mkdir dir="${bin.dir}"/>
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" destdir="${bin.dir}" classpathref='build.classpath'>
</javac>
<!-- Copy Non Java files to the bin folder -->
<copy todir="${bin.dir}" includeemptydirs="false">
<fileset dir="src" excludes="**/*.java" />
</copy>
</target>
<target name="jar" depends="build">
<jar compress='false' destfile="${build.dir}/${jar.name}.jar">
<fileset dir="${bin.dir}">
<include name="**/*" />
</fileset>
</jar>
</target>
</project>