ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Ant 1.7 - resources, unzip and copy
Date Fri, 14 Apr 2006 15:38:42 GMT
--- Patrick Martin <antuser@gmail.com> wrote:

> Thank you for this super-fast answer.
> So <unzip> still has its importance.
> 
> Concerning the encoding, I see that <zipfileset> can
> set it. So it
> does not seem an issue here.

Maybe not... I was just guessing.  ;)

> 
> I am just being curious here... would it be hard to
> allow all file
> based resource collection in <zipfileset> (several
> resources)? I
> always thought that limiting <zipfileset> to one zip
> file was quite
> restrictive.
> 

I don't know that any ease-of-use gains would even
approach justifying the increase in code complexity
this would entail... I guess if you didn't know ahead
of time what archives you wanted to read.  Feel free
to submit a patch implementing this.  :)

-Matt

> Thanks again,
> 
> Patrick Martin.
> 
> On 4/14/06, Matt Benson <gudnabrsam@yahoo.com>
> wrote:
> > --- Patrick Martin <antuser@gmail.com> wrote:
> >
> > > Hello,
> > >
> > > I am having a look at the new resource feature
> in
> > > ant 1.7. This looks
> > > extremly promising! Congratulations!
> > >
> > > I have a question regarding <unzip> and <copy>:
> do
> > > we still need
> > > <unzip> in 1.7? Can't we do everyting <unzip>
> can do
> > > with <copy> now?
> >
> > Hmm... I hadn't thought of it that way, but...
> > >
> > > In ant 1.7, one can do something like:
> > > <copy todir="dest">
> > >       <zipfileset src="pronline.war"
> includes="*" />
> > > </copy>
> > >
> > > Also, <zipfileset> now supports nested resource
> > > collections (like
> > > <fileset>) to work on several zip files at the
> same
> > > time.
> > >
> > Actually, you'd better re-read that.  The context
> in
> > which a nested resource collection is supported is
> > when it contains a single element, to be taken as
> the
> > source "file" for the zipfileset.  This could
> (should?
> >  I haven't tested this) make it possible, e.g., to
> > extract an archive contained in another archive. 
> Note
> > that the "resource" types are all designed to be
> > single-element resource collections, which is
> > admittedly a strange design decision but which I
> chose
> > anyway due to the simplicity it would bring wrt
> > adapting tasks to accept resourcecollections.
> >
> > > The "Related tasks" in the <unzip> doc shows
> that
> > > <unzip> can be
> > > replaced by <copy>. Is there anything that we
> can do
> > > with <unzip> but
> > > not with <copy>?
> > >
> >
> > Umm... use a different encoding for filenames in
> the
> > archive?  I guess really the fact that copy is
> usable
> > in this way actually predates 1.7 and resource
> > collections, going farther back to when resources
> > themselves were first introduced.
> >
> > > Thanks,
> >
> > Thanks for the feedback!
> >
> > -Matt
> >
> > >
> > > Patrick Martin.
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> > > user-help@ant.apache.org
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> user-help@ant.apache.org
> >
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message