• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

zip and uptodate

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Touch the source files, using the touch task

L
 
I promise I will be the best, most loyal friend ever! All for this tiny ad:
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic