Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 48118 invoked from network); 21 Apr 2004 14:34:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Apr 2004 14:34:26 -0000 Received: (qmail 68428 invoked by uid 500); 21 Apr 2004 14:34:10 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 68397 invoked by uid 500); 21 Apr 2004 14:34:10 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 68325 invoked from network); 21 Apr 2004 14:34:09 -0000 Received: from unknown (HELO elitecore.com) (203.88.135.194) by daedalus.apache.org with SMTP; 21 Apr 2004 14:34:09 -0000 Received: (qmail 22192 invoked from network); 21 Apr 2004 14:41:50 -0000 Received: from unknown (HELO mailhost.elitecore.com) ([127.0.0.1]) (envelope-sender ) by 127.0.0.1 (qmail-ldap-1.03) with SMTP for ; 21 Apr 2004 14:41:50 -0000 Received: (qmail 22187 invoked from network); 21 Apr 2004 14:41:50 -0000 Received: from unknown (HELO elitecore86) ([192.168.1.136]) (envelope-sender ) by elitecore.com (qmail-ldap-1.03) with SMTP for ; 21 Apr 2004 14:41:50 -0000 Reply-To: From: "Pawanraj Sadhwani" To: "'Ant Users List'" Subject: RE: unzip Task Throws Java Exception on Valid Files Date: Wed, 21 Apr 2004 20:04:01 +0530 Message-ID: <005301c427ad$b2e82400$8801a8c0@elitecore86> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0054_01C427DB.CCA06000" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-MS-TNEF-Correlator: 00000000926DFBC5EECBE847B9EAB42B2AA25E89A4B14800 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0054_01C427DB.CCA06000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit hi This is a newbie solution, but it might work! :-) Try using gunzip or bunzip2 task of Ant. Maybe they are zipped in that format? Pawan -----Original Message----- From: EJ Ciramella [mailto:eciramella@upromise.com] Sent: Wednesday, April 21, 2004 7:44 PM To: Ant Users List Subject: RE: unzip Task Throws Java Exception on Valid Files Can you open them with winzip? I saw something similar when I was making tar files not too long ago. I created a tar file with compression of gzip turned on and the file named something.tar. Winzip puked but when I changed the extension to tgz, Winzip could properly extract the tar file inside. Turn on verbose and debug just for giggles. -----Original Message----- From: David F. White [mailto:dwhite@opentext.com] Sent: Wednesday, April 21, 2004 10:12 AM To: user@ant.apache.org Subject: unzip Task Throws Java Exception on Valid Files I have several zip files that I can use with the WinZip application without any problems. However, the Ant "unzip" task cannot perform the extract operation on these files without throwing the following exception: getData: [echo] Extracting data files from C:/Downloads/TSNData... [unzip] Expanding: C:\Downloads\TSNData\ctx0409i.zip into C:\Utilities\Tracker\csvdata BUILD FAILED java.lang.IllegalArgumentException: invalid compression method at java.util.zip.ZipEntry.setMethod(ZipEntry.java:209) at org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:255) at org.apache.tools.zip.ZipFile.(ZipFile.java:143) at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:121) at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:108) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:301) at org.apache.tools.ant.Target.performTasks(Target.java:328) at org.apache.tools.ant.Project.executeTarget(Project.java:1215) at org.apache.tools.ant.Project.executeTargets(Project.java:1063) at org.apache.tools.ant.Main.runBuild(Main.java:632) at org.apache.tools.ant.Main.startAnt(Main.java:183) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) Total time: 0 seconds java.lang.IllegalArgumentException: invalid compression method at java.util.zip.ZipEntry.setMethod(ZipEntry.java:209) at org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:255) at org.apache.tools.zip.ZipFile.(ZipFile.java:143) at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:121) at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:108) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:301) at org.apache.tools.ant.Target.performTasks(Target.java:328) at org.apache.tools.ant.Project.executeTarget(Project.java:1215) at org.apache.tools.ant.Project.executeTargets(Project.java:1063) at org.apache.tools.ant.Main.runBuild(Main.java:632) at org.apache.tools.ant.Main.startAnt(Main.java:183) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) invalid compression method Has anybody encountered this error before and is there a solution? Thanks... Dave White --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org ------=_NextPart_000_0054_01C427DB.CCA06000 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org ------=_NextPart_000_0054_01C427DB.CCA06000--