-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
85 lines (85 loc) · 3.29 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
77
78
79
80
81
82
83
84
85
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Ant build file for pollo -->
<project default="compile" name="pollo">
<path id="classpath">
<pathelement location="build"/>
<pathelement location="lib/endorsed/dom3-xmlParserAPIs.jar"/>
<pathelement location="lib/endorsed/dom3-xercesImpl.jar"/>
<pathelement location="lib/avalon-configuration.jar"/>
<pathelement location="lib/log4j-core.jar"/>
<pathelement location="lib/jaxen-core.jar"/>
<pathelement location="lib/jaxen-dom.jar"/>
<pathelement location="lib/saxpath.jar"/>
<pathelement location="lib/isorelax.jar"/>
<pathelement location="lib/msv-20031002.jar"/>
<pathelement location="lib/relaxngDatatype.jar"/>
<pathelement location="lib/xsdlib.jar"/>
<pathelement location="lib/xpp3-1.1.3.4-RC3_min.jar"/>
<pathelement location="lib/commons-lang-exception-2.0.jar"/>
</path>
<property name="version" value="0.4"/>
<!--
<taskdef classname="org.outerj.pollo.engine.ant.PolloAntStructure" name="polloantstructure"/>
<target name="polloantstructure">
<polloantstructure output="antschema.xml"/>
</target>
-->
<target name="compile">
<mkdir dir="build"/>
<javac bootclasspath="lib/endorsed/dom3-xmlParserAPIs.jar" debug="true"
destdir="build" includeJavaRuntime="true" srcdir="src">
<classpath refid="classpath"/>
</javac>
<copy todir="build">
<fileset defaultexcludes="true" dir="src">
<exclude name="**/*.java"/>
</fileset>
<fileset defaultexcludes="true" dir="res"/>
</copy>
<copy file="ChangeLog" tofile="build/org/outerj/pollo/resource/ChangeLog"/>
</target>
<target name="clean">
<delete dir="build"/>
<delete file="pollo.jar"/>
</target>
<target depends="jar" name="zip">
<property name="buildname" value="pollo-${version}-bin"/>
<zip zipfile="${buildname}.zip">
<zipfileset defaultexcludes="true" dir="lib"
excludes="versions.txt" prefix="${buildname}/lib"/>
<zipfileset dir="." includes="pollo.jar" prefix="${buildname}/lib"/>
<zipfileset dir="." includes="${buildname}/README"/>
<zipfileset defaultexcludes="true" dir="bin" prefix="${buildname}/bin"/>
<zipfileset defaultexcludes="true" dir="conf" prefix="${buildname}/conf"/>
</zip>
</target>
<target name="apidoc">
<delete file="apidoc"/>
<mkdir dir="apidoc"/>
<javadoc destdir="apidoc" packagenames="org.outerj.*" sourcepath="src">
<link href="http://java.sun.com/products/jdk/1.3/docs/api"/>
<link href="http://xml.apache.org/xerces-j/apiDocs"/>
<classpath refid="classpath"/>
</javadoc>
</target>
<target name="dtd">
<antstructure output="ant.dtd"/>
</target>
<target depends="clean,compile" name="jar">
<jar compress="false" jarfile="pollo.jar">
<zipfileset dir="build"/>
</jar>
</target>
<target name="website">
<delete dir="websitebuild"/>
<mkdir dir="websitebuild"/>
<loadfile property="footer" srcfile="website/footer.html.part"/>
<filter token="footer" value="${footer}"/>
<copy filtering="true" todir="websitebuild">
<fileset defaultexcludes="true" dir="website" includes="*.html"/>
</copy>
<copy filtering="false" todir="websitebuild">
<fileset defaultexcludes="true" dir="website" excludes="*.html,.**"/>
</copy>
</target>
</project>