You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2005/12/20 05:53:49 UTC
svn commit: r357910 - /ant/antlibs/dotnet/trunk/src/etc/testcases/nant.xml
Author: bodewig
Date: Mon Dec 19 20:53:46 2005
New Revision: 357910
URL: http://svn.apache.org/viewcvs?rev=357910&view=rev
Log:
for reasons I don't understand I get exceptions from Ant (task property is unknown) if I change the default namespace in some tasks and use import in the same build file
Modified:
ant/antlibs/dotnet/trunk/src/etc/testcases/nant.xml
Modified: ant/antlibs/dotnet/trunk/src/etc/testcases/nant.xml
URL: http://svn.apache.org/viewcvs/ant/antlibs/dotnet/trunk/src/etc/testcases/nant.xml?rev=357910&r1=357909&r2=357910&view=diff
==============================================================================
--- ant/antlibs/dotnet/trunk/src/etc/testcases/nant.xml (original)
+++ ant/antlibs/dotnet/trunk/src/etc/testcases/nant.xml Mon Dec 19 20:53:46 2005
@@ -14,7 +14,8 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<project name="nant" basedir="." default="echo">
+<project name="nant" basedir="." default="echo"
+ xmlns:dn="antlib:org.apache.ant.dotnet">
<import file="augment-path.xml"/>
@@ -26,38 +27,33 @@
</condition>
<target name="echo">
- <nant
+ <dn:nant
buildfile="src/nant.build"
- xmlns="antlib:org.apache.ant.dotnet"
>
- <target name="echo"/>
- <property name="foo" value="bar"/>
- </nant>
+ <dn:target name="echo"/>
+ <dn:property name="foo" value="bar"/>
+ </dn:nant>
</target>
<target name="nested-file">
<property name="foo" value="bar"/>
- <nant
- xmlns="antlib:org.apache.ant.dotnet"
- >
- <build>
+ <dn:nant>
+ <dn:build>
<project basedir="." default="echo">
<target name="echo">
<echo message="foo is ${foo}"/>
</target>
</project>
- </build>
- </nant>
+ </dn:build>
+ </dn:nant>
</target>
<target name="nested-task">
<property name="foo" value="bar"/>
- <nant
- xmlns="antlib:org.apache.ant.dotnet"
- >
- <build>
+ <dn:nant>
+ <dn:build>
<echo message="foo is ${foo}"/>
- </build>
- </nant>
+ </dn:build>
+ </dn:nant>
</target>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: svn commit: r357910 - /ant/antlibs/dotnet/trunk/src/etc/testcases/nant.xml
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Stefan,
I wish I would know what is going on there.
> Von: Stefan Bodewig <bo...@apache.org>
> /ant/antlibs/dotnet/trunk/src/etc/testcases/nant.xml
> > for reasons I don't understand I get exceptions from Ant (task
> > property is unknown) if I change the default namespace in some tasks
> > and use import in the same build file
As you said, a simple nutshell testcase will help.
I am happy with my manifestclasspath test, including the hebrew. :-)
Cheers,
Antoine
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: svn commit: r357910 -
/ant/antlibs/dotnet/trunk/src/etc/testcases/nant.xml
Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 20 Dec 2005, <bo...@apache.org> wrote:
> for reasons I don't understand I get exceptions from Ant (task
> property is unknown) if I change the default namespace in some tasks
> and use import in the same build file
I need to sit down and create a simplified testcase for this, but in a
nutshell this is what happens.
I have a build file like this
<project xmlns:dn="antlib:org.apache.ant.dotnet">
<import file="...."/>
<target name="...">
<nant xmlns="antlib:org.apache.ant.dotnet">
...
</nant>
</target>
</project>
and the imported file starts with a <property> task. When I run this,
Ant complains that <property> wasn't defined. If I change the <nant>
task to not declare a new default namespace but use <dn:nant> instead,
everything works.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org