-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.xml
42 lines (36 loc) · 1.24 KB
/
base.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="net.enilink.docs" basedir=".">
<dirname property="self" file="${ant.file.net.enilink.docs}" />
<path id="my-classpath">
<fileset dir="${self}/lib/">
<include name="*.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="output" />
</target>
<target name="compile" depends="clean">
<mkdir dir="${self}/dist/classes" />
<javac includeantruntime="false" srcdir="${self}/src/main/java" destdir="${self}/dist/classes">
<include name="net/enilink/docs/ant/*.java" />
<classpath refid="my-classpath" />
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${self}/dist/jar" />
<jar destfile="${self}/dist/jar/docs.jar" basedir="${self}/dist/classes" />
</target>
<target name="generate" depends="jar">
<!-- I did not implement an ant task, because of the fact that classloader
problems occurred when running a respective proof-of-concept ant task -->
<java classname="net.enilink.docs.ant.Generator">
<classpath refid="my-classpath" />
<classpath>
<pathelement location="${self}/dist/jar/docs.jar" />
</classpath>
<arg value="${source}" />
<arg value="${output}" />
<arg value="${template}" />
</java>
</target>
</project>