ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: "macrodef" for nested elements
Date Thu, 28 Apr 2005 15:58:24 GMT
On Thu, 28 Apr 2005, Peter Reilly <> wrote:
> Matt Benson wrote:
>>Try <presetdef> (This is probably more of a userlist
> Does not work in this case. - tarfileset is not a typedef.

And even if it was you'd have to create each child element outside of
the task with an id and add a tarfileset to the task with refid
pointing to the outer elements.

<mytarfileset dir="${build.root}/images" prefix="images"
<mytarfileset dir="${build.root}/styles" prefix="styles"

<tar ...>
  <tarfileset refid="images"/>
  <tarfileset refid="styles"/>

because <<tar doesn't support the nested "mytarfileset" element.>>.


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

View raw message