Opps, you are correct.
I was using my anti-xml-hell patch
http://marc.theaimsgroup.com/?l=ant-dev&m=107763945224538&w=2
you need to do the following silliness:
<antlib>
<presetdef name="myls" xmlns:c="ant:current">
<apply executable="ls">
<c:arg value="-l"/>
</apply>
</presetdef>
</antlib>
see:
http://ant.apache.org/manual/CoreTypes/antlib.html#currentnamespace
Peter
Matt Benson wrote:
>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
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|