On 18.05.2004 10:53, [EMAIL PROTECTED] wrote:

Hi,
Thanks for the reply.
I tried giving 'src' and 'name' both values as
"concat($directoryPath,$dirName)".
 I get the same error.

"org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.RuntimeException:
org.apache.excalibur.source.SourceNotFoundException: file:/C:/directory/ doesn't exist".

Unfortunately you did not read my mail not correctly - or I wrote it not understandable. You should use "concat($filePath,$fileName)" aka $fileToBeZipped for your *files* and therefore *remove* the zip:entry's for the directories.


Joerg

-----Original Message-----
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]


Indeed it's either a limitation of the zip archive serializer or could be reached by a work around: http://cocoon.apache.org/2.1/userdocs/serializers/ziparchive-serializer.
html.


What does obviouly not work is the referencing of a directory in zip:entry/@src. But from the example in the above docu it *might* work to use "concat($filePath,$fileName)" (named as $fileToBeZipped in your code below) as both zip:entry/@src and zip:entry/@name.

Joerg

PS: Is there any reason that there are always so many linebreaks in your

mails? Could you switch off HTML mails for the mailing lists?



On 17.05.2004 08:51, [EMAIL PROTECTED] wrote:


Hi,
I am trying to zip a directory and all the content of the directory


I have a directory structure as follows:


C:\Directory | |-- dirA |--------FileA.text |--------FileB.text |-- dirB |--FileRootA.txt |--FileRootB.txt


I have written an xsl to read this using Directory generator and zip the files and the directories recursively till n level.. What I found,


all the files at all the levels are getting zipped but not directory.
For directories I get the following error:


'If I comment the zip entry for directories, files gets zipped correctly.



"org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.RuntimeException:
org.apache.excalibur.source.SourceNotFoundException: file:/C:/directory/ doesn't exist"



Though the directory very much exists. I have tried hard coding and adding the same also, but no luck. I have the xsl written as below:



Can some one please check out and let me know where I am going wrong, or is it that we can only zip files using Cocoon and not directories.



Thanks in advance. Regards, Moin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to