arnaud.bailly | 1 Dec 09:06

Creating site archive

Hello,
For the purpose of testing, I need to be able to zip a directory
containing a nuxeo WE site. When I try to do this then later want to
deploy the zip, I got errors because some information is missing (I read
NuxeoArchiveReader.java and NuxeoArchiveWriter.java and there is some
metadata added). Are you aware of a way to make a 'normal' zip a nuxeo
zip, outside of nuxeo ? 

Thanks,
Arnaud Bailly

Ce message et toutes les pièces jointes sont établis à l'attention exclusive de leurs destinataires et
sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir
immédiatement l'expéditeur. L'internet ne permettant pas d'assurer l'intégrité de ce message, le
contenu de ce message ne représente en aucun cas un engagement de la part de Leroy Merlin.
Julien CARSIQUE | 2 Dec 12:14

Re: Creating site archive

Hello,

We're used to archive Nuxeo without any problem. I'm not sure to 
understand yours.
How do you do this ? On which OS ? With witch software ?
What do you mean by "deploy the zip" and "a normal zip" ?
You may have problems under Windows with paths length, try again from root.

arnaud.bailly@... a écrit :
> Hello,
> For the purpose of testing, I need to be able to zip a directory
> containing a nuxeo WE site. When I try to do this then later want to
> deploy the zip, I got errors because some information is missing (I read
> NuxeoArchiveReader.java and NuxeoArchiveWriter.java and there is some
> metadata added). Are you aware of a way to make a 'normal' zip a nuxeo
> zip, outside of nuxeo ? 
>
> Thanks,
> Arnaud Bailly
>
>
>
> Ce message et toutes les pièces jointes sont établis à l'attention exclusive de leurs destinataires
et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir
immédiatement l'expéditeur. L'internet ne permettant pas d'assurer l'intégrité de ce message, le
contenu de ce message ne représente en aucun cas un engagement de la part de Leroy Merlin.
>
> _______________________________________________
> ECM mailing list
> ECM@...
(Continue reading)

arnaud.bailly | 2 Dec 13:27

Re: Creating site archive

Le mardi 02 décembre 2008 à 12:14 +0100, Julien CARSIQUE a écrit :
> Hello,
> 
> We're used to archive Nuxeo without any problem. I'm not sure to 
> understand yours.
> How do you do this ? On which OS ? With witch software ?

I am using standard maven-assembly-plugin, maven 2.0.9, linux, java 1.5.
I did the following:
 - export a site to zip using the following script (see at end)
 - unzip the produced archive
 - zip the produced archive with maven 
 - import the site using the import script below

This does not work. 

However, If I remove step 2 and 3, it works. Doing a unzip -l in the
console shows that a banner is added by nuxeo which obviously is not by
maven. I am wondering why this is so ? I can of course look at
NuxeoArchiveWriter and try to reproduce what this does, but this seems
to me a bit complex.

Regards,

aRnaud Bailly

the import script:
import org.nuxeo.ecm.core.io.impl.plugins.ZipReader
import org.nuxeo.ecm.core.io.impl.plugins.DocumentModelWriter
import org.nuxeo.ecm.core.io.impl.DocumentPipeImpl
(Continue reading)


Gmane