-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.xml
More file actions
103 lines (84 loc) · 2.88 KB
/
build.xml
File metadata and controls
103 lines (84 loc) · 2.88 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<project name="QuickLB" default="all" basedir=".">
<property name="app.name" value="QuickLB" />
<property name="build.dir" value="build" />
<property name="main.build.dir" value="${build.dir}/mainclasses" />
<property name="servlet.build.dir" value="${build.dir}/servletclasses" />
<property name="dist.dir" value="dist" />
<property name="flag.debug" value="true" />
<target name="clean">
<delete dir="${main.build.dir}" />
<delete dir="${test.build.dir}" />
<delete dir="${client.build.dir}" />
<delete file="${dist.dir}/${app.name}.jar" />
</target>
<path id="project.classpath">
<fileset dir="./lib/">
<include name="**/*.jar"/>
</fileset>
<fileset dir="./jetty/">
<include name="jetty-cp.jar"/>
</fileset>
<pathelement path="${main.build.dir}"/>
</path>
<target name="jetty_cp">
<delete file="jetty/jetty-cp.jar" />
<mkdir dir="${main.build.dir}"/>
<!-- jetty -->
<path id="jetty-build-classpath">
<fileset dir="jetty">
<include name="*.jar"/>
</fileset>
<fileset dir="jetty/lib">
<include name="**/*.jar"/>
</fileset>
</path>
<manifestclasspath property="jetty-lib.list" jarfile="jetty/jetty-cp.jar">
<classpath refid="jetty-build-classpath"/>
</manifestclasspath>
<jar jarfile="jetty/jetty-cp.jar"
basedir="${main.build.dir}"
excludes="**" >
<manifest>
<attribute name="Class-Path" value="${jetty-lib.list}"/>
</manifest>
</jar>
<!-- jetty -->
</target>
<!-- main jar -->
<target name="main_compile" depends="clean, jetty_cp">
<mkdir dir="${main.build.dir}"/>
<javac srcdir="src/main/" destdir="${main.build.dir}" debug="${flag.debug}"
deprecation="on" optimize="on" includeantruntime="false" source="1.6" target="1.6">
<include name="**/*.java"/>
<classpath refid="project.classpath"/>
</javac>
<mkdir dir="${servlet.build.dir}"/>
<javac srcdir="src/servlet/" destdir="${servlet.build.dir}" debug="${flag.debug}"
deprecation="on" optimize="on" includeantruntime="false" source="1.6" target="1.6">
<include name="**/*.java"/>
<classpath refid="project.classpath"/>
</javac>
</target>
<target name="main_jar" depends="main_compile">
<mkdir dir="${dist.dir}"/>
<jar jarfile="${dist.dir}/${app.name}-Servlet.jar"
basedir="${main.build.dir}" includes="**" />
<jar jarfile="${dist.dir}/${app.name}.jar"
basedir="${servlet.build.dir}" includes="**" manifest="src/main/QuickLB.MF"/>
</target>
<!-- main jar -->
<target name="run" depends="main_jar">
<java fork="yes" classname="com.quickserverlab.quicklb.QuickLB"
taskname="QuickLB" failonerror="true">
<arg line=""/>
<classpath refid="project.classpath"/>
<classpath>
<fileset dir="dist">
<include name="**/*.jar"/>
</fileset>
</classpath>
</java>
</target>
<target name="jar" depends="main_jar" />
<target name="all" depends="jar" />
</project>