ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: nested elements in antlibs
Date Wed, 31 Mar 2004 18:02:35 GMT
I can't figure it out... I am using your exact example
and I get "The <antlib:test:myls> type doesn't support
the nested "arg" element."...

-Matt

--- Peter Reilly <peter.reilly@corvil.com> wrote:
> 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
> 


__________________________________
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


Mime
View raw message