ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sco...@javactivity.org
Subject RE: "macrodef" for nested elements
Date Thu, 28 Apr 2005 21:34:35 GMT
If macrodef could be made to accept a variable number of
identically-named nested elements wouldn't this this buy us what we
need to make   this work?  The macrodef itself could convert the
macro-named element into a tarfileset.

> -------- Original Message --------
> Subject: Re: "macrodef" for nested elements
> From: Stefan Bodewig <bodewig@apache.org>
> Date: Thu, April 28, 2005 8:58 am
> To: dev@ant.apache.org
> 
> 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


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


Mime
View raw message