-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
48 lines (40 loc) · 2.01 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
<?xml version="1.0" standalone="yes"?>
<project name="ooo-messaging" default="compile" basedir=".">
<property name="src.dir" location="src/main/java"/>
<property name="deploy.dir" location="target"/>
<property name="classes.dir" location="${deploy.dir}/classes"/>
<property name="jar.file" location="${deploy.dir}/${ant.project.name}.jar"/>
<!-- bring in our standard build support -->
<property name="ooo-build.vers" value="2.9"/>
<ant antfile="etc/bootstrap.xml"/>
<import file="${user.home}/.m2/ooo-build/${ooo-build.vers}/ooo-build.xml"/>
<target name="prepare" depends="-init-ooo">
<mkdir dir="${classes.dir}"/>
<mavendep pom="pom.xml"/>
</target>
<target name="clean" description="Cleans out compilation results.">
<delete dir="${deploy.dir}"/>
</target>
<target name="compile" depends="prepare" description="Builds the Java code.">
<ooojavac srcdir="${src.dir}" destdir="${classes.dir}" version="1.5"
classpathref="pom.xml.path"/>
</target>
<target name="package" depends="compile" description="Builds and jars the code.">
<jar destfile="${jar.file}" basedir="${classes.dir}"/>
</target>
<target name="javadoc" depends="prepare" description="Builds the Java documentation">
<mkdir dir="${deploy.dir}/docs"/>
<javadoc sourcepath="${src.dir}" destdir="${deploy.dir}/docs"
additionalparam="-breakiterator" classpathref="pom.xml.path">
<link href="http://download.oracle.com/javase/6/docs/api/"/>
<link href="http://docs.guava-libraries.googlecode.com/git/javadoc/"/>
<link href="http://samskivert.github.com/samskivert/apidocs/"/>
</javadoc>
</target>
<target name="install" depends="package" description="Installs to local Maven repository.">
<maveninstall file="${jar.file}" pom="pom.xml"/>
</target>
<target name="deploy" depends="package,javadoc" description="Deploys to remote Maven repository.">
<mavendeploy file="${jar.file}" pom="pom.xml" srcdir="${src.dir}" docdir="${deploy.dir}/docs"/>
</target>
</project>