-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
executable file
·48 lines (41 loc) · 1.5 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
<project default="jar">
<property name="build.compiler" value="modern" />
<property name="src.dir" value="src" />
<property name="build.dir" value="build" />
<property name="version" value="6.0.0-alpha" />
<property name="jarfile" value="${build.dir}/qso-${version}.jar" />
<property name="depsfile" value="${build.dir}/qso-${version}-deps.zip" />
<path id="classpath">
<fileset dir="WebContent/WEB-INF/lib" includes="*.jar" />
<fileset dir="lib" includes="*.jar" />
<fileset dir="../../../../../../../../../bin/apache-tomcat-10.0.17/lib" includes="*.jar" />
</path>
<target name="clean">
<delete dir="${build.dir}" />
</target>
<target name="compile">
<mkdir dir="${build.dir}/classes" />
<javac fork="true" debug="true" debuglevel="lines,vars,source"
srcdir="${src.dir}/java" destdir="${build.dir}/classes">
<classpath refid="classpath" />
</javac>
<javac fork="true" debug="true" debuglevel="lines,vars,source"
srcdir="${src.dir}/test" destdir="${build.dir}/classes">
<classpath refid="classpath" />
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${jarfile}">
<fileset dir="${build.dir}/classes" />
<fileset dir="${src.dir}/java" />
<fileset dir="${src.dir}/test" />
</jar>
</target>
<target name="dist" depends="jar">
<delete file="${depsfile}" />
<zip destfile="${depsfile}">
<fileset dir="lib" includes="*.jar" />
<fileset dir="WebContent/WEB-INF/lib" includes="*.jar" />
</zip>
</target>
</project>