blob: 23737b0fc64a1cd157102984eb4d862ddfc3fe5b [file] [log] [blame]
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!--
does exactly the same as the AntBuilder in AntTest... just to be sure that ant behaves the same
as what we expect from the AntBuilder
-->
<project name="test" default="full">
<target name="full">
<path id="task.path">
<pathelement location="classes"/>
</path>
<taskdef name="spoofcontainer" classname="groovy.ant.SpoofTaskContainer" classpathref="task.path"/>
<taskdef name="spoof" classname="groovy.ant.SpoofTask" classpathref="task.path"/>
<spoofcontainer>
<spoof foo="123"/>
</spoofcontainer>
</target>
<target name="testAntBuilderWithinGroovyTask" description="Test for GROOVY-1602">
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy"/>
<echo message="before groovy task"/>
<groovy>
ant.echo(message: 'ant builder within groovy task')
</groovy>
<echo message="after groovy task"/>
</target>
</project>