blob: 435398c92646694f2801fceab0232e1e8d7500dc [file] [log] [blame]
<?xml version="1.0"?>
<!--
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.
-->
<project name="nant" basedir="." default="echo"
xmlns:dn="antlib:org.apache.ant.dotnet">
<import file="augment-path.xml"/>
<condition property="nant.found">
<or>
<available file="NAnt.exe" filepath="${augmented.PATH}"/>
<available file="NAnt.exe"/>
</or>
</condition>
<target name="echo">
<dn:nant
buildfile="src/nant.build"
>
<dn:target name="echo"/>
<dn:property name="foo" value="bar"/>
</dn:nant>
</target>
<target name="nested-file">
<property name="foo" value="bar"/>
<dn:nant>
<dn:build>
<project basedir="." default="echo">
<target name="echo">
<echo message="foo is ${foo}"/>
</target>
</project>
</dn:build>
</dn:nant>
</target>
<target name="nested-task">
<property name="foo" value="bar"/>
<dn:nant errorProperty="nant.failed">
<dn:build>
<echo message="foo is ${foo}"/>
</dn:build>
</dn:nant>
</target>
<target name="fail">
<dn:nant>
<dn:build>
<fail message="Failed"/>
</dn:build>
</dn:nant>
</target>
<target name="hidden-failure">
<dn:nant failOnError="false">
<dn:build>
<fail message="Failed"/>
</dn:build>
</dn:nant>
</target>
<target name="hidden-failure-property">
<dn:nant failOnError="false" errorProperty="nant.failed">
<dn:build>
<fail message="Failed"/>
</dn:build>
</dn:nant>
</target>
</project>