Hi,
this sound good and I think I'll go for this solution. Correct me if I'm
wrong but it could be realized by using a new map:action in the sitemap?
Best regards,
H.
On 25.05.2007 13:52, HGENTO wrote:
how can I unzip a zip file with an sitemap instruction. I have access
to a special file with zip:/file.zip!/file.xml but I would like to
have an instruction to unzip the complete file.zip. Is there a easy
way to do so in Cocoon 2.1.? I did't found a answer on wiki as well
as apache cocoon homepage.
It's probably not there because it has no special meaning in Cocoon.
You can easily implement that yourself using java.util.zip.* stuff. If
you want a util doing this for you (for example ZipUtils or whatever)
that's beyond the scope of Cocoon. But there are probably a few libs
out there in the wild. I found for example Plexus' zip component [1].
It has a ZipUnArchiver. Apache Ant should also have zip functionality.
Regards
Joerg
[1]
http://fisheye.codehaus.org/browse/plexus/plexus-components/trunk/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/zip
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]