Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

zip and uptodate

 
Mike Dahmus
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Lewin Chan
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Touch the source files, using the touch task

L
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic