forked from ccarrster/kraplow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·56 lines (47 loc) · 1.57 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
<?xml version="1.0" ?>
<project name="Kraplow" default="war">
<!-- Exposing environmental variables to Ant -->
<property environment="env"/>
<!-- Stick configurable properties in this file instead of hard coding them -->
<property file = "build.properties"/>
<path id="compile.classpath">
<fileset dir="WebContent/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="build/classes"/>
<mkdir dir="dist" />
</target>
<target name="compile" depends="init" >
<javac destdir="build/classes" debug="true" srcdir="src">
<classpath refid="compile.classpath"/>
</javac>
</target>
<target name="war" depends="compile">
<war destfile="dist/westerncardgame.war" webxml="WebContent/WEB-INF/web.xml">
<fileset dir="WebContent"/>
<lib dir="WebContent/WEB-INF/lib"/>
<classes dir="build/classes"/>
</war>
</target>
<target name = "deploy" depends = "war" description = "Deploy application .war to the appserver">
<copy todir = "${deploy.path}" preservelastmodified = "true">
<fileset dir = "dist">
<include name = "*.war"/>
</fileset>
</copy>
</target>
<target name = "test">
<junit haltonfailure = "true" printsummary = "true">
<classpath location="${junit.home}/junit-${junit.version}.jar" />
<formatter type="plain" usefile="false" />
<classpath location="build/classes"/>
<test name = "com.chriscarr.bang.test.AllTests"/>
</junit>
</target>
<target name="clean">
<delete dir="dist" />
<delete dir="build" />
</target>
</project>