-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
37 lines (32 loc) · 1.32 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
<project name="BlinkyMetrics" default="build-agent-zip" basedir=".">
<target name="build-agent-zip">
<delete file="out/artifacts/BlinkyMetricsAgent.zip"/>
<zip destfile="out/artifacts/BlinkyMetricsAgent.zip">
<fileset file="out/artifacts/BlinkyMetricsAgent.jar"/>
<zipfileset dir="Agent/lib/sigar" includes="**" prefix="native"/>
</zip>
</target>
<property name="one-jar.dist.dir" value="${basedir}/Agent/lib/one-jar"/>
<import file="${one-jar.dist.dir}/one-jar-ant-task.xml" optional="true"/>
<target name="build-agent-one-jar">
<one-jar destfile="${basedir}/out/BlinkyMetricsAgent.jar">
<manifest>
<attribute name="One-Jar-Main-Class" value="BlinkyMetricsAgent"/>
</manifest>
<main>
<fileset dir="${basedir}/out/production/Agent"/>
</main>
<binlib>
<fileset file="${basedir}/Agent/lib/sigar/*.*"/>
</binlib>
<lib>
<fileset file="${basedir}/Agent/lib/sigar.jar"/>
<fileset file="${basedir}/Agent/lib/log4j.jar"/>
</lib>
</one-jar>
<echo>
Now you can run the application with just:
$ java -jar BlinkyMetricsAgent.jar
</echo>
</target>
</project>