Repository navigation
Expand file tree
/
Copy pathbuild.xml
More file actions
38 lines (29 loc) · 1.53 KB
/
Copy pathbuild.xml
File metadata and controls
38 lines (29 loc) · 1.53 KB
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
<?xml version="1.0"?>
<project name="doc" default="doc" basedir=".">
<!-- Load user's default properties. -->
<property file="${user.home}/build.properties" />
<loadresource property="version">
<file file="${basedir}/../share/VERSION.txt"/>
</loadresource>
<property name="build.dir" value="../b
4AB7
uild/avro-doc-${version}"/>
<target name="doc" depends="forrest.check" description="Generate forrest-based documentation. To use, specify -Dforrest.home=<base of Apache Forrest installation> on the command line." if="forrest.home">
<mkdir dir="${build.dir}"/>
<echo file="../build/avro.ent" append="false">
<!ENTITY AvroVersion "${version}">
</echo>
<exec executable="${forrest.home}/bin/forrest" failonerror="true">
<env key="JAVA_HOME" value="${java5.home}"/>
<arg value="-Dproject.content-dir=src"/>
<arg value="-Dproject.site=../${build.dir}/"/>
</exec>
</target>
<target name="forrest.check" unless="forrest.home" depends="java5.check">
<fail message="'forrest.home' is not defined. Please pass -Dforrest.home=<base of Apache Forrest installation> to Ant on the command-line." />
</target>
<target name="java5.check" unless="java5.home">
<fail message="'java5.home' is not defined. Forrest requires Java 5. Please pass -Djava5.home=<base of Java 5 distribution> to Ant on the command-line." />
</target>
<target name="clean" description="Delete build files, and their directories">
<delete dir="${basedir}/build"/>
</target>
</project>