ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: nested elements in antlibs
Date Wed, 31 Mar 2004 11:39:05 GMT
That should work, at least it does for me:

  <presetdef name="myls">
    <apply executable="ls">
      <arg value="-l"/>
    </apply>
  </presetdef>

in an antlib at package test
and used:
<project xmlns:t="antlib:test">
   <t:myls>
      <t:fileset dir="."/>
   </t:myls>
</project>

Matt Benson wrote:

>I am finding that I cannot define the following in an
>antlib:
>
><presetdef name="myexecutable">
>  <apply executable="myexecutable">
>    <arg value="-f" />
>  </apply>
></presetdef>
>
>and reference it with a namespace, due to the fact
>that the nested elements keep the default namespace,
>even using the <myexecutable xmlns="antlib:org.my">
>notation.  Since presets are pre-created, I guess I
>can understand how this is happening... should it
>continue to happen?  Am I missing an obvious
>workaround other than loading the antlib via a
><typedef> and no ns?
>
>Thanks,
>Matt
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Finance Tax Center - File online. File on time.
>http://taxes.yahoo.com/filing.html
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
>
>
>  
>


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


Mime
View raw message