forked from dawgtrades/dawgtrades
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
84 lines (74 loc) · 2.19 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
<project name="dawgtrades" default="dist" basedir=".">
<property name="src" location="src"/>
<property name="classes" location="classes"/>
<property name="dist" location="dist"/>
<path id="classpath">
<fileset dir="/opt/classes">
<include name="mysql-connector-java-5.1.22-bin.jar"/>
<include name="servlet-api.jar"/>
</fileset>
<fileset dir="/opt/jboss">
<include name="jboss-modules.jar"/>
</fileset>
<fileset dir="WebContent/WEB-INF/lib" includes="*.jar"/>
</path>
<target name="init">
<tstamp/>
<mkdir dir="lib"/>
<mkdir dir="${classes}"/>
<mkdir dir="WebContent/WEB-INF/classes"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${classes}">
<classpath refid="classpath"/>
</javac>
</target>
<target name="dist" depends="compile">
<jar jarfile="lib/dawgtrades.jar" basedir="${classes}"/>
<jar jarfile="WebContent/WEB-INF/lib/dawgtrades.jar" basedir="${classes}"/>
</target>
<target name="deploy" depends="dist">
<javac srcdir="${src}" destdir="WebContent/WEB-INF/classes">
<classpath refid="classpath"/>
</javac>
<war webxml="WebContent/WEB-INF/web.xml" destfile="team9_dt.war" basedir="WebContent/WEB-INF/classes">
<lib dir="WebContent/WEB-INF/lib"/>
</war>
</target>
<target name="testCreate" depends="dist">
<java classname="edu.uga.dawgtrades.test.ObjectModelCreate" fork="true">
<classpath>
<path refid="classpath"/>
<path location="${dist}/lib/dawgtrades.jar"/>
</classpath>
</java>
</target>
<target name="testUpdate" depends="dist">
<java classname="edu.uga.dawgtrades.test.ObjectModelUpdate" fork="true">
<classpath>
<path refid="classpath"/>
<path location="${dist}/lib/dawgtrades.jar"/>
</classpath>
</java>
</target>
<target name="testRead" depends="dist">
<java classname="edu.uga.dawgtrades.test.ObjectModelRead" fork="true">
<classpath>
<path refid="classpath"/>
<path location="${dist}/lib/dawgtrades.jar"/>
</classpath>
</java>
</target>
<target name="testDelete" depends="dist">
<java classname="edu.uga.dawgtrades.test.ObjectModelDelete" fork="true">
<classpath>
<path refid="classpath"/>
<path location="${dist}/lib/dawgtrades.jar"/>
</classpath>
</java>
</target>
<target name="clean">
<delete dir="${classes}"/>
<delete dir="WebContent/WEB-INF/classes"/>
</target>
</project>