-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
68 lines (60 loc) · 2.43 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
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0"?>
<!--######################################################################### -->
<!-- Build file for JVM Monitor -->
<!-- Used by Jakarta Ant ver. 1.4.1 -->
<!--######################################################################### -->
<project name="jvm_monitor" default="all" basedir=".">
<property file="build.properties"/>
<property name="build.dest.dir" value="${build}/classes" />
<!-- Build dependencies (jar files) for the source code =========== -->
<path id="build.dependencies">
<!-- Add the jars in the "lib" directory (3rd party jars) -->
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
<!-- Add all jars in the JDK directory -->
<!--fileset dir="${JAVA_HOME}/lib">
<include name="*.jar" />
</fileset-->
<!-- Add all jars in the JDK directory -->
<!--fileset dir="${JAVA_HOME}/lib">
<include name="*.jar" />
</fileset-->
</path>
<target name="all" depends="clean, init, jar"/>
<target name="clean">
<echo message="deleting build directory"/>
<delete dir="${build}"/>
<echo message="deleting deploy directory"/>
<delete dir="${deploy}"/>
</target>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
<mkdir dir="${deploy}"/>
<mkdir dir="${build.dest.dir}"/>
</target>
<target name="compileall">
<echo message="Compiling all files"/>
<javac destdir="${build.dest.dir}" optimize="true" deprecation="on" includes="**/*.java" fork="true" debug="on">
<classpath>
<path refid="build.dependencies" />
<pathelement location="${build.dest.dir}"/>
</classpath>
<src path="${source}"/>
</javac>
</target>
<target name="jar" depends="compileall">
<echo message="Creating JVM Monitor Jar"/>
<jar destfile="${deploy}/${app}-${version}.jar">
<fileset dir="${build.dest.dir}"/>
<fileset dir="${resource}">
<include name="images/*.jpg"/>
</fileset>
<manifest>
<attribute name="Main-Class" value="com.sc.hm.monitor.main.VMApplicationMain"/>
<attribute name="Class-Path" value="../lib/jdk.tools-1.8.jar ../lib/mail-1.4.jar ../lib/activation-1.1.jar ../lib/wljmxclient.jar ../lib/wlclient.jar"/>
</manifest>
</jar>
</target>
</project>