ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <>
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"/>

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

Matt Benson wrote:

>I am finding that I cannot define the following in an
><presetdef name="myexecutable">
>  <apply executable="myexecutable">
>    <arg value="-f" />
>  </apply>
>and reference it with a namespace, due to the fact
>that the nested elements keep the default namespace,
>even using the <myexecutable xmlns="">
>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?
>Do you Yahoo!?
>Yahoo! Finance Tax Center - File online. File on time.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message