This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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.
Consider Paul's rocket mass heater.
subject: zip and uptodate
Similar Threads
including xml file in .ear file
Possible to execute a target only if files have changed?
ant zip task
Up-to-date checks with macros
How to make a part of a target conditional?