-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.xml
executable file
·53 lines (43 loc) · 1.24 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
JMX Query tool build script.
-->
<project name="JMX Query tool" default="all" basedir=".">
<property name="BASE" location="."/>
<property name="src" location="${BASE}/src"/>
<property name="out" location="${BASE}/classes"/>
<property name="dist" location="${BASE}/dist"/>
<path id="buildpath">
</path>
<target name="clean">
<delete dir="${out}"/>
<delete dir="${dist}"/>
</target>
<target name="all" depends="jar">
</target>
<target name="jar" depends="compile">
<jar destfile="munin/plugin/jmxquery.jar" basedir="${out}">
<include name="org/munin/**"/>
</jar>
<jar destfile="nagios/plugin/jmxquery.jar" basedir="${out}">
<include name="org/nagios/**"/>
</jar>
</target>
<target name="compile">
<antcall target="compile.source.folder">
<param name="src" value="${src}"/>
</antcall>
</target>
<target name="compile.source.folder">
<mkdir dir="${out}"/>
<javac destdir="${out}" debug="on">
<classpath refid="buildpath"/>
<src path="${src}"/>
</javac>
<copy todir="${out}">
<fileset dir="${src}">
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
</project>