-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
42 lines (36 loc) · 1.12 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
<?xml version="1.0"?>
<!--
============================================
Ant buidling for memory observer binaries.
@author Xiaowei Chen
============================================
-->
<project name="MemoryObserver" default="post-clean">
<property name="buildLib" value="target" />
<property name="tempBuildLib" value="target/tmpBuild" />
<property name="jarFile" value="${buildLib}/MemoryObserver-1.0.jar" />
<target name="init">
<tstamp />
<mkdir dir="${buildLib}" />
<mkdir dir="${tempBuildLib}" />
</target>
<target name="compile" depends="pre-clean, init">
<javac source="1.5" target="1.5" destdir="${tempBuildLib}">
<src path="src/main/java" />
</javac>
</target>
<target name="pack" depends="compile">
<jar jarfile="${jarFile}" basedir="${tempBuildLib}">
<manifest>
<attribute name="Premain-Class" value="com.candybon.memory.MemoryObserver" />
</manifest>
</jar>
</target>
<target name="pre-clean">
<delete dir="${tempBuildLib}" quiet="true"/>
<delete file="${jarFile}"/>
</target>
<target name="post-clean" depends="pack">
<delete dir="${tempBuildLib}" quiet="true"/>
</target>
</project>