ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: "macrodef" for nested elements
Date Thu, 28 Apr 2005 15:58:24 GMT
On Thu, 28 Apr 2005, Peter Reilly <peterreilly@apache.org> wrote:
> Matt Benson wrote:
> 
>>Try <presetdef> (This is probably more of a userlist
>>question).
>>
>>
> 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"
              id="images"/>
<mytarfileset dir="${build.root}/styles" prefix="styles"
              id="styles"/>
...

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

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

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message