-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
43 lines (35 loc) · 1.6 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="min3d" default="compile" xmlns:artifact="urn:maven-artifact-ant">
<property name="deploy.dir" location="dist"/>
<property name="classes.dir" location="${deploy.dir}/classes"/>
<property name="libs.dir" location="libs"/>
<property name="src.dir" location="src"/>
<property name="ooo-build.vers" value="2.1"/>
<ant antfile="bootstrap.xml"/>
<import file="${user.home}/.m2/ooo-build/${ooo-build.vers}/ooo-build.xml"/>
<!-- Gets our various properties files and sticks them in dist -->
<target name="config" depends="-init-ooo">
<!-- TODO - Gatherconfiguration stuff will eventually want to live here. -->
</target>
<target name="-prepare" depends="-init-ooo,config">
<mavendep pom="pom.xml" destDir="${libs.dir}"/>
</target>
<target name="compile" depends="-prepare">
<ant target="compile" antfile="build-android.xml"/>
</target>
<target name="distclean">
<ant target="clean" antfile="build-android.xml"/>
<delete dir="${deploy.dir}"/>
<delete dir="${libs.dir}"/>
</target>
<target name="dist" depends="compile">
<jar destfile="${deploy.dir}/${ant.project.name}.jar">
<fileset dir="${classes.dir}" includes="**"/>
</jar>
</target>
<target name="maven-deploy" depends="dist"
description="Deploys our build artifacts to a Maven repository.">
<mavendeploy file="${deploy.dir}/${ant.project.name}.jar"
srcdir="${src.dir}" pom="pom.xml"/>
</target>
</project>