summaryrefslogtreecommitdiff
path: root/build/gant.xml
blob: cf349b7ef3afc1ebe08cc74a56e042e973fcc01e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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>