summaryrefslogtreecommitdiff
path: root/build/gant.xml
diff options
context:
space:
mode:
Diffstat (limited to 'build/gant.xml')
-rw-r--r--build/gant.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/build/gant.xml b/build/gant.xml
new file mode 100644
index 000000000000..cf349b7ef3af
--- /dev/null
+++ b/build/gant.xml
@@ -0,0 +1,20 @@
+<project name="Test gant invocation from Ant script" default="doGant">
+ <dirname property="build.dir" file="${ant.file}"/>
+ <property name="project.home" value="${build.dir}/.."/>
+ <property name="gant.home" value="${project.home}/build/lib/gant"/>
+ <property name="gant.target" value="default"/>
+
+ <path id="gant.classpath">
+ <fileset dir="${gant.home}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+ <taskdef name="gant" classname="org.codehaus.gant.ant.Gant">
+ <classpath refid="gant.classpath"/>
+ </taskdef>
+
+ <target name="doGant">
+ <gant file="${gant.script}" target="${gant.target}"/>
+ </target>
+</project>