-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-accordion-with-volume.xml
39 lines (35 loc) · 1.16 KB
/
build-accordion-with-volume.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
<?xml version="1.0" ?>
<project name="sample-war" default="war">
<path id="compile.classpath">
<fileset dir="src/main/webapp/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<property environment='env'/>
<mkdir dir="build/classes"/>
<mkdir dir="dist" />
<echo message='${env.HOME}' />
</target>
<target name="compile" depends="init" >
<javac destdir="build/classes" debug="true" srcdir="src/main/java">
<classpath>
<path refid="compile.classpath"/>
<fileset dir="${env.HOME}/deploy-lib">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="war" depends="compile">
<war destfile="dist/sample.war" webxml="src/main/webapp/WEB-INF/web.xml">
<fileset dir="src/main/webapp"/>
<lib dir="src/main/webapp/WEB-INF/lib"/>
<classes dir="build/classes"/>
</war>
</target>
<target name="clean">
<delete dir="dist" />
<delete dir="build" />
</target>
</project>