I don't know the fix yet, but the specific problem is:
The ODT file is a zip file that looks like this:
Your code generates the output like this:
What I think you need to do is detect if the file to zip is a directory and if it is then get the list of files and add them directly rather than adding the directory and the children.
I have to check what you are actually doing though... and I don't know how that would be different on Windows vs. Mac or Linux...
--This above has to do with the zip(File) and zip(File,
String) methods. If you call the zip(File[] ...) methods no extra directory is generated.
[ August 20, 2008: Message edited by: Steve Luke ]