Guys,
 
Great utility!
 
I may have found a bug with the unzip task.  I have attached the build
file.  The build file contents are shown below and so is the result.
 
I'm trying to download a GZIP file then UNZIP it.  The download (get)
does work fine but the UNZIP has an error.  I'm not totally sure it
should as GZIP and ZIP are not the same thing.  But the documentation
for NANT seems to imply that it should work.  The get might also have a
bug as it seems to always download the file even though I set
"usetimestamp" to true.  In case it matters, I'm not on the mail group
list so I may not see your replies unless you email me directly.

I appreciate the great work you guys are doing.  Thanks in advance for
any help you provide.
 
IPTables.build file: (attached)
------------------------------------------------------------------------
--
<?xml version="1.0"?>
<project name="IPTables" default="GetIPTables">
    <target name="GetIPTables">
       <get
src="http://software77.net/cgi-bin/ip-country/geo-ip.pl?action=download";
dest="IpToCountry.csv.gz" usetimestamp="true" />
       <unzip zipfile="IpToCountry.csv.gz"/>
    </target>
</project>

Console Output:
------------------------------------------------------------------------
--
C:\XWallUtils\IPTables>nant
NAnt 0.85 (Build 0.85.1793.0; rc1; 11/28/2004)
Copyright (C) 2001-2004 Gerry Shaw
http://nant.sourceforge.net
 
Buildfile: file:///C:/XWallUtils/IPTables/IPTables.build
Target(s) specified: GetIPTables
 

GetIPTables:
 
      [get] Retrieving
'http://software77.net/cgi-bin/ip-country/geo-ip.pl?action=download' to
'C:\XWallUtils\IPTables\IpToCount
ry.csv.gz'.
    [unzip] Unzipping 'C:\XWallUtils\IPTables\IpToCountry.csv.gz' to
'C:\XWallUtils\IPTables' (717323 bytes).
 
BUILD FAILED
 
INTERNAL ERROR
 
ICSharpCode.SharpZipLib.ZipException: Wrong Local header signature:
0x8088B1F
   at ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNextEntry()
   at NAnt.Compression.Tasks.UnZipTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()
 
Please send bug report to [EMAIL PROTECTED]
 
Total time: 4.6 seconds.
 

Attachment: IPTables.build
Description: IPTables.build

Reply via email to