Bubba,

The <unzip> task does not support GZip compression.

However, I just added a <gunzip> task in cvs as a late xmas present ;-)

About your <get> task "issue": the URL you used is that of a web
application, which always returns the current date/time as LastModified, so
the behavior you're seeing is "normal" ...

Gert

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Bubba Fowler
> Sent: zondag 26 december 2004 10:09
> To: nant-developers@lists.sourceforge.net
> Subject: [nant-dev] Possible bug report
> 
> 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=dow
> nload' 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.
>  
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to