File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "zip and uptodate" Watch "zip and uptodate" New topic
Author

zip and uptodate

Mike Dahmus
Greenhorn

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?
Thanks,
Mike Dahmus


-----Mike Dahmus mike@dahmus.org
Lewin Chan
Ranch Hand

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

L


I have no java certifications. This makes me a bad programmer. Ignore my post.
 
wood burning stoves
 
subject: zip and uptodate