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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to