-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.xml
43 lines (37 loc) · 1.42 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
<project name="smartdeveloper" default="compile" basedir=".">
<!-- Output Directories -->
<property name="classes.dir" value="classes" />
<property name="config.dir" value="conf" />
<!-- Source Directories -->
<property name="src.dir" value="src" />
<property name="lib.dir" value="lib" />
<property name="jar.manifest" value="jar.manifest" />
<!-- Class Path -->
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar" />
</path>
<!-- Targets -->
<target name="prepare">
<mkdir dir="${classes.dir}" />
</target>
<target name="compile" depends="prepare">
<unzip src="lib/commons-1.0.jar" dest="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" source="1.6" target="1.6" debug="true" debuglevel="lines,vars,source">
<classpath>
<path refid="classpath" />
</classpath>
</javac>
<manifest file="${jar.manifest}">
<attribute name="Premain-Class" value="me.hatter.tools.jtop.agent.Agent" />
<attribute name="Agent-Class" value="me.hatter.tools.jtop.agent.Agent" />
<attribute name="Main-Class" value="me.hatter.tools.jtop.main.Main" />
<attribute name="Can-Redefine-Classes" value="true" />
</manifest>
<jar destfile="jtop.jar" manifest="${jar.manifest}">
<fileset dir="${classes.dir}" includes="**/*.*" />
<!--<fileset dir="${config.dir}" includes="**/*.*" />-->
</jar>
<delete dir="${classes.dir}" />
<delete file="${jar.manifest}" />
</target>
</project>