Re: Folder-Comments

2009-09-24 Thread Andy Stevens
2009/9/22 Arne v.Irmer : > Hi, > with the command line program "zip" I can create a zip-File with annotated > folders inside. I try to generate such a zip-File with the > org.apache.tools.zip classes coming with ant.jar. > > Here is my small example program: > > package org.example.zip; > > impor

Re: Folder-Comments

2009-09-24 Thread Arne v.Irmer
Hi, analysing the code solves the problem. First all folders that will be added to a zip must end with a slash! Second a ZipEntry must be marked explicit as a folder by setting the 4th bit of the ExternalAttributes. This will be done by setting the UnixMode of a ZipEntry. Here a complete example

Folder-Comments

2009-09-22 Thread Arne v.Irmer
Hi, with the command line program "zip" I can create a zip-File with annotated folders inside. I try to generate such a zip-File with the org.apache.tools.zip classes coming with ant.jar. Here is my small example program: package org.example.zip; import java.io.BufferedOutputStream; import ja