| <?xml version="1.0"?> |
| <!-- |
| Copyright 2003-2005 The Apache Software Foundation |
| |
| Licensed 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="msbuild" basedir="." default="echo" |
| xmlns:dn="antlib:org.apache.ant.dotnet"> |
| |
| <import file="augment-path.xml"/> |
| <condition property="msbuild.found"> |
| <or> |
| <available file="MSBuild.exe" filepath="${augmented.PATH}"/> |
| <available file="MSBuild.exe"/> |
| </or> |
| </condition> |
| |
| <target name="echo"> |
| <dn:msbuild buildfile="src/msbuild.proj"> |
| <dn:target name="echo"/> |
| <dn:property name="foo" value="bar"/> |
| </dn:msbuild> |
| </target> |
| |
| <target name="nested-file"> |
| <property name="foo" value="bar"/> |
| <dn:msbuild> |
| <dn:build> |
| <Project DefaultTargets="echo" |
| xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| <Target Name="echo"> |
| <Message Text="foo is ${foo}"/> |
| </Target> |
| </Project> |
| </dn:build> |
| </dn:msbuild> |
| </target> |
| |
| <target name="nested-task"> |
| <property name="foo" value="bar"/> |
| <dn:msbuild> |
| <dn:build> |
| <Message Text="foo is ${foo}" |
| xmlns="http://schemas.microsoft.com/developer/msbuild/2003"/> |
| </dn:build> |
| </dn:msbuild> |
| </target> |
| |
| </project> |