-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
59 lines (51 loc) · 1.8 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
<project name="UMT">
<description>Universal Migration Tool</description>
<property name="src.dir" value="src"/>
<property name="dist.dir" value="dist"/>
<property name="lib.dir" value="tomcat/lib"/>
<property name="work.dir" value="tomcat/work"/>
<property name="wtpwebapps.dir" value="tomcat/wtpwebapps"/>
<property name="root.dir" value="tomcat/webapps/ROOT"/>
<property name="classes.dir" value="tomcat/webapps/ROOT/WEB-INF/classes"/>
<property name="classes.com.dir" value="${classes.dir}/com"/>
<property name="wsdl.dir" value="wsdl"/>
<property name="webinf.dir" value="tomcat/webapps/ROOT/WEB-INF"/>
<property name="app.lib.dir" value="${webinf.dir}/lib"/>
<property name="umt.java.version" value="1.8"/>
<!--+
| Default classpath
+-->
<path id="classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${app.lib.dir}">
<include name="**/*.jar" />
</fileset>
<pathelement path="${java.class.path}/" />
</path>
<!--+
| Compiles the Java source files
+-->
<target name="compile" depends="clean">
<echo>Compiling classes</echo>
<javac destdir="${classes.dir}" classpathref="classpath" source="${umt.java.version}" target="${umt.java.version}">
<src path="${src.dir}"/>
</javac>
</target>
<target name="dist" depends="compile">
<war destfile="${dist.dir}/ROOT.war" webxml="${webinf.dir}/web.xml">
<classes dir="${classes.dir}"/>
<lib dir="${app.lib.dir}"/>
<fileset dir="${root.dir}">
<exclude name="WEB-INF"/>
</fileset>
</war>
</target>
<target name="clean">
<echo>Cleaning the project</echo>
<delete dir="${classes.com.dir}" />
<delete dir="${work.dir}" />
<delete dir="${wtpwebapps.dir}" />
</target>
</project>