-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.xml
More file actions
58 lines (49 loc) · 1.7 KB
/
build.xml
File metadata and controls
58 lines (49 loc) · 1.7 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="vstlf">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<path id="vstlf.classpath">
<pathelement location="bin"/>
<pathelement location="lib/perst15.jar"/>
<pathelement location="lib/junit.jar"/>
</path>
<!-- DESTROY: DELETE THE CURRENTLY EXISTING JAR -->
<target name="destroy">
<delete file="uconn-vstlf.jar"/>
</target>
<assertions><enable/></assertions>
<!-- BUILD: JAVAC FROM 'src' TO 'bin' -->
<target name="build">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}" includeantruntime="false">
<src path="src"/>
<classpath refid="vstlf.classpath"/>
</javac>
</target>
<!-- PACK: EXPORT THE PROJECT INTO AN ALL INCLUSIVE JAR FILE -->
<target name="pack" depends="build">
<jar destfile="uconn-vstlf.jar" basedir="bin">
<manifest>
<attribute name="Main-Class" value="edu.uconn.vstlf.shutil.Run"/>
</manifest>
<zipfileset src="lib/perst15.jar" includes="**/*"/>
</jar>
</target>
<!-- CLEAN: DELETE THE 'bin' DIRECTORY FROM FILE SYSTEM -->
<target name="clean">
<delete dir="bin"/>
</target>
<!-- ALL: DESTROY, BUILD, PACK, CLEAN -->
<target depends="destroy, build, pack, clean" name="all">
<echo message="Compilation complete. Result is in 'uconn-vstlf.jar'"/>
</target>
</project>