-
Notifications
You must be signed in to change notification settings - Fork 2
/
subclass.xml
84 lines (63 loc) · 1.59 KB
/
subclass.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<project name="subclass" basedir="." default="test">
<!-- override this on the command line -->
<property
name="search.dir"
value="build"/>
<property
name="output.dir"
value="scratch"/>
<property
name="jar.file.name"
value="p6ds.jar"/>
<property
name="jar.file"
value="dist/${jar.file.name}"/>
<fileset id="search.fileset" dir="${search.dir}">
<include name="**\*.jar"/>
<include name="**\*.class"/>
</fileset>
<path id="cp">
<fileset id="lib.fileset" dir="lib">
<include name="**\*.jar"/>
</fileset>
<fileset id="dist.fileset" dir="dist">
<include name="**\*.jar"/>
</fileset>
</path>
<taskdef
name="p6subclass"
classname="com.p6spy.engine.common.SubclassTask"
>
<classpath refid="cp"/>
</taskdef>
<target name="init">
</target>
<target name="clean">
<delete dir="${output.dir}"/>
</target>
<target name="create" depends="init">
<p6subclass outputdir="${output.dir}">
<classpath refid="cp"/>
<classpath>
<fileset refid="search.fileset"/>
</classpath>
<fileset refid="search.fileset"/>
</p6subclass>
</target>
<target name="compile" depends="create">
<javac srcdir="${output.dir}">
<classpath refid="cp"/>
<classpath>
<fileset refid="search.fileset"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${jar.file}">
<fileset dir="${output.dir}">
<include name="**\*.class"/>
</fileset>
</jar>
</target>
<target name="test" depends="create"/>
</project>