-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
49 lines (37 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
<?xml version="1.0"?>
<project name="hq-squid-plugin" default="build" basedir=".">
<property file="build.properties"/>
<property name="name" value="squid"/>
<property name="pdk.dir" value="../.."/>
<property name="build.dir" location="build"/>
<property name="plugin.dir" location="${build.dir}/plugins"/>
<!-- Plugin interfaces and support classes -->
<path id="plugin.classpath">
<fileset dir="${pdk.dir}/lib" includes="*.jar" excludes="log4j.jar"/>
</path>
<!-- ${name}-plugin.jar packaging -->
<taskdef name="hqplugin"
classname="org.hyperic.hq.product.ant.PluginJar"
classpathref="plugin.classpath"/>
<!-- Compile the classes and build ${name}-plugin.jar -->
<target name="compile">
<mkdir dir="${build.dir}/classes"/>
<mkdir dir="${plugin.dir}"/>
<javac destdir="${build.dir}/classes"
optimize="off"
debug="on"
source="1.4" target="1.4"
classpathref="plugin.classpath">
<src>
<path location="src"/>
</src>
</javac>
</target>
<target name="pack">
<hqplugin name="${name}"/>
</target>
<target name="build" depends="compile,pack"/>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
</project>