-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
60 lines (45 loc) · 1.58 KB
/
build.xml
File metadata and controls
60 lines (45 loc) · 1.58 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
<project name="QuickMonitor" default="all" basedir=".">
<property name="app.name" value="QuickMonitor" />
<property name="build.dir" value="build" />
<property name="main.build.dir" value="build/mainclasses" />
<property name="test.build.dir" value="build/testcases" />
<property name="dist.dir" value="dist" />
<target name="clean">
<delete dir="${main.build.dir}" />
<delete dir="${test.build.dir}" />
<delete dir="${build.dir}" failonerror="false"/>
</target>
<path id="project.classpath">
<fileset dir="./lib/">
<include name="**/*.jar"/>
</fileset>
</path>
<!-- main jar -->
<target name="main_compile" depends="clean">
<mkdir dir="${main.build.dir}"/>
<javac srcdir="src/main/" destdir="${main.build.dir}" debug="on"
deprecation="on" optimize="on" includeantruntime="false" target="1.5">
<include name="**/*.java"/>
<classpath refid="project.classpath"/>
</javac>
</target>
<target name="main_jar" depends="main_compile">
<mkdir dir="${dist.dir}"/>
<jar jarfile="${dist.dir}/QuickMonitor.jar"
basedir="${main.build.dir}" includes="**" manifest="src/QuickMonitor.MF"/>
</target>
<!-- main jar -->
<target name="run" depends="main_jar">
<java fork="yes" classname="com.google.code.quickmonitor.service.MonitorService"
taskname="QuickMonitor" failonerror="true">
<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>