1
<?xml version="1.0" encoding="UTF-8" ?>
4
Gant - A Groovy way of scripting Ant tasks.
6
Copyright © 2008-10 Russel Winder
8
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
9
compliance with the License. You may obtain a copy of the License at
11
http://www.apache.org/licenses/LICENSE-2.0
13
Unless required by applicable law or agreed to in writing, software distributed under the License is
14
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15
implied. See the License for the specific language governing permissions and limitations under the
18
Author : Russel Winder <russel@russel.org.uk>
21
<project name="Gant Ant Task Test" default="gantTestDefaultFileDefaultTarget" basedir=".">
23
<import file="commonBits.xml"/>
25
<target name="gantTestDefaultFileDefaultTarget" depends="-defineGantTask">
29
<target name="gantTestDefaultFileNamedTarget" depends="-defineGantTask">
33
<target name="gantTestNamedFileDefaultTarget" depends="-defineGantTask">
34
<gant file="build.gant"/>
37
<target name="gantTestNamedFileNamedTarget" depends="-defineGantTask">
38
<gant file="build.gant" target="blah"/>
41
<!-- Ensure there is no file of the name used in the Gant Ant task here. -->
42
<target name="missingGantfile" depends="-defineGantTask">
43
<gant file="blahBlahBlahBlah.blah"/>
46
<!-- Ensure there is no target called blahBlahBlahBlah. -->
47
<target name="gantTaskdefVerifyError" depends="-defineGantTask">
48
<gant file="build.gant" target="gantTaskdefVerifyError"/>
51
<target name="gantWithParametersAsNestedTags" depends="-defineGantTask">
52
<gant file="build.gant" target="gantParameters">
53
<definition name="flob" value="adob"/>
54
<definition name="burble"/>
58
<target name="gantWithMultipleTargets" depends="-defineGantTask">
60
<gantTarget value="test"/>
61
<gantTarget value="blah"/>
65
<!-- For GANT-110. Thanks to Eric Van Dewoestine for providing this. -->
67
<target name="gantTestInheritAll" depends="-defineGantTask">
68
<property name="gant.test.inheritAll" value="gantInheritAllWorks"/>
69
<gant file="build.gant" target="gantInheritAll"/>
70
<gant file="build.gant" target="gantInheritAll" inheritAll="false"/>
71
<gant file="build.gant" target="gantInheritAll" inheritAll="true"/>
74
<!-- For GANT-111. Thanks to Eric Van Dewoestine for providing this. -->
76
<target name="gantTestFail" depends="-defineGantTask">
77
<gant file="build.gant" target="testFail"/>