This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes zip and uptodate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "zip and uptodate" Watch "zip and uptodate" New topic

zip and uptodate

Mike Dahmus

Joined: Mar 07, 2002
Posts: 29
Hi folks,
I'm trying to write an ant task which will add a set of source files to a possibly pre-existing zip file, using the update=true attribute to make sure that they are added if the zip file exists, and added to a new zip file otherwise.
In my first test, I'm running with the zip file already there, but not containing these files that I want to add. Already, I can't get ant to do what I want; it's failing an "uptodate" check. Apparently because the stuff I want to add has an earlier timestamp than the zip file itself, ant refuses to add the files.
Any idea how I can force ant to ignore uptodate on this task?
Mike Dahmus

-----Mike Dahmus
Lewin Chan
Ranch Hand

Joined: Oct 10, 2001
Posts: 214
Touch the source files, using the touch task


I have no java certifications. This makes me a bad programmer. Ignore my post.
I agree. Here's the link:
subject: zip and uptodate
It's not a secret anymore!