-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.xml
57 lines (47 loc) · 1.75 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
14 Sep 2010 14:04:44
Skywriting-java
Build script for Skywriting java components.
dgm36
====================================================================== -->
<project name="skywriting-java" default="default">
<description>
Build script for Skywriting java components.
</description>
<macrodef name="exampleJar">
<attribute name="example"/>
<sequential>
<jar destfile="${dir.dist}/sky-eg-@{example}.jar">
<fileset dir="${dir.build}" includes="skywriting/examples/@{example}/**"/>
</jar>
</sequential>
</macrodef>
<target name="build-bindings">
<mkdir dir="${dir.dist}"/>
<sequential>
<jar destfile="${dir.dist}/skywriting.jar">
<fileset dir="${dir.build}" includes="uk/co/mrry/mercator/task/**"/>
</jar>
</sequential>
</target>
<target name="build-examples" depends="build-bindings">
<mkdir dir="${dir.dist}"/>
<exampleJar example="smithwaterman"/>
<exampleJar example="pi"/>
<exampleJar example="wordcount"/>
<exampleJar example="grep"/>
<exampleJar example="skyhout"/>
<copy todir="/home/dgm36/public_html/">
<fileset dir="${dir.dist}" includes="*.jar"/>
</copy>
</target>
<target name="clean">
<echo>=== CLEAN ===</echo>
<delete failonerror="false">
<fileset dir="${dir.dist}" includes="**/*"/>
</delete>
</target>
<target name="default" depends="build-bindings" description="Build script for Skywriting java components.">
</target>
</project>