You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Praveen.C" <pr...@elixirtech.com> on 2001/06/26 12:54:16 UTC
Override old version of zip file with new.
Hi all,
When I zip files in ant, It doesn't override the old
version of the zip file(same name,location which
is created before.)
Any solutions ??
Thanks and Regards,
Praveen.C
Re: Override old version of zip file with new.
Posted by "Praveen.C" <pr...@elixirtech.com>.
This is the answer I wanted.......
Uptodate was the problem which I didnt note.
I really appreciate your immediate response.
Thanks.
Regards,
Praveen.C
----- Original Message -----
From: "Stefan Bodewig" <bo...@apache.org>
To: <an...@jakarta.apache.org>
Sent: Tuesday, June 26, 2001 7:10 PM
Subject: Re: Override old version of zip file with new.
> Praveen C. <pr...@elixirtech.com> wrote:
>
> > When I zip files in ant, It doesn't override the old
> > version of the zip file(same name,location which
> > is created before.)
>
> Probably because it thinks the old one is up to date. Ant will
> overwrite an existing archive only if one of the files to add is newer
> than the archive itself.
>
> > Any solutions ??
>
> Find out, why it cannot find any source files that are newer than the
> archive (probably a bug in your build file) - if you want to recreate
> an archive even though it is newer than all source files, simply
> delete the old one first.
>
> Stefan
>
Re: Override old version of zip file with new.
Posted by Stefan Bodewig <bo...@apache.org>.
Praveen C. <pr...@elixirtech.com> wrote:
> When I zip files in ant, It doesn't override the old
> version of the zip file(same name,location which
> is created before.)
Probably because it thinks the old one is up to date. Ant will
overwrite an existing archive only if one of the files to add is newer
than the archive itself.
> Any solutions ??
Find out, why it cannot find any source files that are newer than the
archive (probably a bug in your build file) - if you want to recreate
an archive even though it is newer than all source files, simply
delete the old one first.
Stefan