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







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to