This repository has been archived by the owner on Sep 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.xml
76 lines (57 loc) · 1.98 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="UTF-8"?>
<project name="xquerydoc" default="dist" basedir=".">
<description>
</description>
<property name="version" value="0.1"/>
<property name="dist.dir" value="dist"/>
<property name="izpack.dir" value="/Applications/IzPack"/>
<available property="izpack.present"
classname="com.izforge.izpack.ant.IzPackTask"
classpath="${izpack.dir}/lib/compiler.jar"/>
<target name="izpacktool" if="izpack.present">
<taskdef name="izpack"
classpath="${izpack.dir}/lib/compiler.jar"
classname="com.izforge.izpack.ant.IzPackTask"/>
</target>
<target name="izpackmissing" unless="izpack.present">
<echo>Cannot find IzPack; request to build dist ignored.</echo>
</target>
<target name="init">
<mkdir dir="${dist.dir}"/>
</target>
<target name="clean">
<delete dir="${dist.dir}"/>
</target>
<target name="dist" depends="init,distrib,izpacktool"
if="izpack.present">
<izpack input="${dist.dir}/install.xml"
output="${dist.dir}/xquerydoc-${version}.jar"
installerType="standard"
basedir="${dist.dir}"
izPackDir="${izpack.dir}"/>
</target>
<target name="distrib">
<copy todir="${dist.dir}">
<fileset file="etc/install.xml"/>
</copy>
<copy todir="${dist.dir}/xquerydoc-${version}/">
<fileset file="LICENCE"/>
<fileset file="README.md"/>
<fileset file="xquerydoc"/>
<fileset file="xquerydoc.bat"/>
<fileset file="xquerydoc.xpl"/>
</copy>
<copy todir="${dist.dir}/xquerydoc-${version}/deps">
<fileset dir="deps"/>
</copy>
<copy todir="${dist.dir}/xquerydoc-${version}/src/lib">
<fileset dir="src/lib"/>
</copy>
<copy todir="${dist.dir}/xquerydoc-${version}/src/xquery">
<fileset dir="src/xquery"/>
</copy>
<copy todir="${dist.dir}/xquerydoc-${version}/docs">
<fileset dir="docs"/>
</copy>
</target>
</project>