-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
49 lines (35 loc) · 1.09 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
<?xml version="1.0" ?>
<project name="EMS" default="war">
<property name="src.dir" value="src" />
<property name="build.dir" value="build" />
<property name="classes.dir" value="${build.dir}/classes" />
<property name="war.dir" value="${build.dir}/war" />
<target name="mkdir">
<mkdir dir="build/classes" />
<mkdir dir="dist" />
</target>
<!-- Delete the existing dist,build direct -->
<target name="delete">
<delete dir="dist" />
<delete dir="build" />
</target>
<!-- Path -->
<path id="compile.classpath">
<fileset dir="WebContent/WEB-INF/lib" />
</path>
<!-- Compiling Target -->
<target name="compile" depends="mkdir">
<javac destdir="build/classes" debug="true" includeantruntime="false"
srcdir="src">
<classpath refid="compile.classpath" />
</javac>
</target>
<target name="war" depends="compile">
<war destfile="dist/AntEMS.war" webxml="WebContent/WEB-INF/web.xml">
<!-- Define which file/dir should get included in -->
<fileset dir="WebContent" />
<lib dir="WebContent/WEB-INF/lib" />
<classes dir="build/classes" />
</war>
</target>
</project>