Foros de discusión

Import/Export LAR from a script?

Mark Wolff, modificado hace 12 años.

Import/Export LAR from a script?

New Member Mensaje: 1 Fecha de incorporación: 7/12/11 Mensajes recientes
For our build & test automation, we would like to automate the export and later import of web content via a LAR file. We considered driving the Liferay admin web page with a robot tool, but thought that we could do something cleaner. Does anyone have a suggestion on doing this?
thumbnail
Namrata Hangal, modificado hace 11 años.

RE: Import/Export LAR from a script?

Regular Member Mensajes: 161 Fecha de incorporación: 27/07/10 Mensajes recientes
Hi Mark,

Any luck with your objective?
Costin Pirosca, modificado hace 8 años.

RE: Import/Export LAR from a script?

New Member Mensajes: 8 Fecha de incorporación: 26/06/15 Mensajes recientes
Hello,

Any luck on this topic?

Thank you
thumbnail
Jan Geißler, modificado hace 8 años.

RE: Import/Export LAR from a script?

Liferay Master Mensajes: 735 Fecha de incorporación: 5/07/11 Mensajes recientes
Take a look at the resource-importer.

https://www.liferay.com/de/documentation/liferay-portal/6.1/development/-/ai/6-1-importing-resources-with-themes
Costin Pirosca, modificado hace 8 años.

RE: Import/Export LAR from a script?

New Member Mensajes: 8 Fecha de incorporación: 26/06/15 Mensajes recientes
Thank you for the answer.
I have merge my .lar file with the .war archive of liferay theme but when i deploy it on the server it seems that the web content is not loaded into liferay.
Even after restart it is not visible or available. Should jboss have some settings enabled?

What i actually want is to do is to automate the import/export somehow from one server to another. I have tried writing some sql scripts to copy information between databases JournalArticle tables but with no success.

My lar files are about 1Gb (more or less) of data and i want to try to ease the Import/Export workflow by automate it.

I am using liferay 6.1.

Thank you for all the help!