-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
56 lines (43 loc) · 1.45 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
54
55
56
<?xml version="1.0"?>
<project name="hq-dynomite-plugin" default="build" basedir=".">
<property file="${user.home}/.hq-plugin-build.properties"/>
<property name="name" value="dynomite"/>
<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"/>
<fileset dir="lib" includes="*.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.5" target="1.5"
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>
<target name="markdown">
<exec executable="markdown" dir="." output="${build.dir}/README.html">
<arg value="README.markdown"/>
</exec>
</target>
</project>