ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lenz <cml...@gmx.de>
Subject Re: Official (reserved?) namespace of Ant itself???
Date Mon, 20 Oct 2003 09:53:43 GMT
peter reilly wrote:
> Note that introspection discovered elements are
> in the ant:core namespace. This does make some
> things a little difficult to use/explain:
> 
>     <ac:switch value="${foo}">
>       <ant:case value="bar">
>         <echo message="The value of property foo is bar" />
>       </ant:case>
>       <ant:case value="baz">
>         <echo message="The value of property foo is baz" />
>       </ant:case>
>       <ant:default>
>         <echo message="The value of property foo is not sensible" />
>       </ant:default>
>     </ac:switch>

Not to state the obvious, but this looks awfully wrong. Would it be possible 
to have non-declared (i.e. introspection-discovered) elements inherit the 
namespace from the first declared ancestor? Of course that would need to 
exclude elements that correspond to built-in types like filesets, which 
again should be in the "ant:core" namespace ... :-/

-chris

> Peter
> On Monday 20 October 2003 10:05, peter reilly wrote:
> 
>>The default ns for ant is "ant:core".
>>
>><ant:project name="antx" default="help"
>>             xmlns:ant="ant:core"
>>             xmlns:ac="antlib:net.sf.antcontrib">
>>
>>  <ant:target name="help">
>>    <ant:echo>This is a test!</ant:echo>
>>    <ac:shellscript shell="bash">
>>      echo This is also a test
>>    </ac:shellscript>
>>  </ant:target>
>>
>></ant:project>
>>
>>as described in opps.... missing documentation.
>>
>>Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message