forked from Appdynamics/apache-monitoring-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
33 lines (32 loc) · 1.34 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
<project default="build">
<property name="build.dir" value="dist" />
<property name="conf.dir" value="conf" />
<property name="project.name" value="ApacheMonitor"/>
<property name="machine.agent.jar" value="lib/machineagent/machineagent.jar"/>
<property name="log.jar" value="lib/log4j/log4j-1.2.15.jar"/>
<path id="cp">
<pathelement location="${machine.agent.jar}"/>
<pathelement location="${log.jar}"/>
</path>
<target name="build">
<mkdir dir="${build.dir}/classes"/>
<javac destdir="${build.dir}/classes" srcdir="src/main/java" classpathref="cp" debug="on"/>
<mkdir dir="${build.dir}/ApacheMonitor"/>
<jar destfile="${build.dir}/ApacheMonitor/${project.name}.jar">
<fileset dir="${build.dir}/classes"/>
</jar>
<copy todir="${build.dir}/ApacheMonitor">
<fileset dir="${conf.dir}" includes="monitor.xml"/>
</copy>
<delete dir="${build.dir}/classes"/>
</target>
<target name="package" depends="build">
<zip destfile="${build.dir}/ApacheMonitor.zip">
<zipfileset dir="${build.dir}/ApacheMonitor" filemode="755" prefix="ApacheMonitor/"/>
</zip>
<delete dir="${build.dir}/ApacheMonitor"/>
</target>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
</project>