• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ANT and Winzip problem

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, All!
I've got the problem: When I create .zip file with Ant's "zip" task, I can't open it with Winzip 6.2 (it opens all file with 0 byte length). If I try Winzip 8.0 or WinRar, everything is OK.
Does anybody have the same problem and what you did to solve it.
Thank you in advance.
Alex Givant.
 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have never had this issue come up, but I seem to recall some sort of zip format change.
I use jar all the time to zip up and unzip things. Maybe that will work for you?
 
Alex Givant
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for response, but we need to produce distribution in ZIP format, which will be used by QA and customer.
Any other thoughts?
Alex Givant.
 
Author
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The jar, war, ear, and zip tasks all are using a common base to build the files - so building a zip file with the jar task is acceptable, it only depends on what other features you need. For example, the war task has built-in capability to place files in the WEB-INF directory.
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Alex Givant:
Thank you for response, but we need to produce distribution in ZIP format, which will be used by QA and customer.
Any other thoughts?
Alex Givant.


I havent heard of this problem before, perhaps you should file it with ants bug system, on nagoya.apache.org. I think it may just be that winzip6.2 is too old to handle the long filenames or other changes to the zip format...winzip 7 works nicely with ant generated zips.
remember that the jar command in the JDK can also unzip a file (jar xvf filename.zip) so anyone with a JDK has a standardised unzipper to hand.
reply
    Bookmark Topic Watch Topic
  • New Topic