ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <>
Subject RE: How to update a jar?
Date Thu, 10 May 2001 13:26:57 GMT
> > I'm not sure what you mean by optional in this case... the user
> > wouldn't have to specify anything in this case - it would all be
> > hard-coded in the relevant classes (with zip just returning an
> > "include everything" ZipFileSet).
> This is what I mean - make it possible for the user to say "I want the
> include everything fileset, even if I said <jar> and not <zip>".
> But start out with whatever seems most appropriate to you.

Right - I see what you mean now. However, during a meeting I worked out
rather larger problem: half of the point of being able to update an
is to freshen files. I don't believe the original chunk (move, zip
original, delete temp) will work with this. For instance, the small

<target name="test">
  <delete file=""/>
  <zip zipfile="">
       <fileset dir="test1" includes="a.txt"/>
       <fileset dir="test2" includes="a.txt"/>

(with appropriate files)

gave a duplicate entry: a.txt

So the ZipFileSet to include has to *exclude* all files that are about
to be
added. That could be slightly tricky - at least for someone like me
much Ant experience.

I'll think on it... I believe this is a problem that enough people are
to want to get past that it's worth putting some real effort in.


View raw message