You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Antoine Levy-Lambert <an...@gmx.de> on 2006/11/21 16:54:25 UTC

[Bug 41004] - Zipfileset with refid + prefix stopped working.

Hello Steve and others,

there is actually also a bug report for a datatype which would be a fileset (or resource collection) associated with a mapper.

This would be the generic, clean solution to this kind of issues.

Regards,

Antoine


> ------- Additional Comments From stevel@apache.org  2006-11-21 07:37
> -------
> You know, I was trying to do this exact thing at work last week. Define a
> fileset of files and then import it into both a tarfile and a zip file. 
> 
> Because I was using 1.7.0, it failed on me, even though I had the vague
> idea
> that it would work...I had to resort to duplicate declarations. If I had
> used
> ant1.6 it would have worked, and I too would have viewed the 1.7 behaviour
> as a
> regression.
> 
> Putting aside the notion of immutable references, the underlying problem
> is 'how
> to add an existing fileset to a tar or zip file under a new path'. We
> could do a
> clean way that doesnt break the rules, and maybe resources already permit
> it.
> But since a way already did exist (possibly deliberately added in the
> past), we
> may just want to retain the old one.
> 
> 
> Nb, regarding the extends attribute 
> 
> <zipfileset prefix="foo" extends-id="bar" />
> 
> That raises expecations too high, as you start thinking you can nest
> 
> <zipfileset prefix="foo" extends-id="bar" >
>   <include name="*.class" />
> </zipfileset>
> 
> A new resource may be better, one that doesnt take children.
> 
> <zipfilesetref prefix="foo" refid="bar" />
> 

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


Re: [Bug 41004] - Zipfileset with refid + prefix stopped working.

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Dominique (and others),

creating a new datatype associating a ResourceCollection and a Mapper would be a framework where stuff like ZipFileSet with prefix can be described.

Regards,

Antoine
-------- Original-Nachricht --------
Datum: Tue, 21 Nov 2006 10:14:36 -0600
Von: "Dominique Devienne" <dd...@gmail.com>
An: "Ant Developers List" <de...@ant.apache.org>
Betreff: Re: [Bug 41004] - Zipfileset with refid + prefix stopped working.

> > there is actually also a bug report for a datatype which would be a
> fileset (or resource collection) associated with a mapper.
> >
> > This would be the generic, clean solution to this kind of issues.
> 
> Which solution? --DD
> 

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


Re: [Bug 41004] - Zipfileset with refid + prefix stopped working.

Posted by Peter Reilly <pe...@gmail.com>.
On 11/21/06, Dominique Devienne <dd...@gmail.com> wrote:
> > there is actually also a bug report for a datatype which would be a fileset (or resource collection) associated with a mapper.
> >
> > This would be the generic, clean solution to this kind of issues.
>
> Which solution? --DD

Also, the 1.7.0rc behaviour breaks
BC.  I had done this on purpose - but did
not know if there was real live users of the prefix setting
idiom - It works for zipfileset but not for tarfileset - the
original bug was about prefix not working for tarfileset.
So the 1.6.x behaviour has to be restored (with some
bug fixes).

Peter



>
> ---------------------------------------------------------------------
> 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


Re: [Bug 41004] - Zipfileset with refid + prefix stopped working.

Posted by Dominique Devienne <dd...@gmail.com>.
> there is actually also a bug report for a datatype which would be a fileset (or resource collection) associated with a mapper.
>
> This would be the generic, clean solution to this kind of issues.

Which solution? --DD

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