From: <bc...@wo...> - 2002-01-11 20:23:51
|
[Phil Surette] >I'm creating a build file that automatically >creates a distribution of ant with a bunch of >included addons, the most important of which >is jython. > >The script automatically pulls down the jython >distribution from jython.org and then tries to >extract the files from it as if it was a .zip >file. > >Problems (with jython-21.class under linux): >- ant's unzip task simply won't unzip it The ant Unzip task uses a java.util.zip.ZipInputStream which require that the stream starts with a valid zip entry. The installer doesn't because it begins with a class file, but a valid zip files doesn't have to start with a zip entry. Instead a java.util.zip.ZipFile would read the file from the end and I believe that is what the Unzip ant task should be using. Personally, I don't care enough about the ant Unzip task to submit a patch. >- infozip's unzip tool can unzip it (phew) >but the permissions of the unzipped files >are all empty (no permissions). When I use >infozip on other zip files I don't have this >problem. Even zipfiles created by java? I'm no zip expert, but is seems like the java zip package only writes the most basic information in each zip entry and that does not include unix access right. >I guess this is liftoff issue and not a jython >issue, just thought everyone should know. > >My vote is for a stanadard jar distribution of >jython in the next release! Please add a feature request. regards, finn |