I wrote the following Nant script on my Vista dev machine and was pleased as punch with the output of the Nant zip task, as I can unzip it with any problems:
<zip zipfile="${dir.build}CeoConfigUtilities.${build-version}.zip">
<fileset basedir="${dir.configutilities}" prefix="CeoConfigUtilities">
<include name="**" />
</fileset>
</zip>
I checked the Nant script into SVN, and the build server zipped up my files without a problem. I tested and found I can unzip those on my Vista machine too. Life and Nant are good, right? Well, others get the following message when unzipping these files on Windows XP Pro:
The Compressed (zipped) Folder is invalid or corrupted.
I took the files produced on my machine to an XP machine and got the same message. One difference I notice is that, when I open the zip using XP's built-in tools, it says the compression ratio for each file is 100%. Using jZip on Vista, each file has a different, non-100% ratio.
Has anyone experienced anything like this? Is there some setting I don't know about to make the output of the Nant zip task be unzippable on XP? Nant was working out so well for me that I'll be disappointed if this silly unzip issue fouls things up for XP users.