Lorenzo Manzoni wrote:
I would like to execute an export of all/some of the
wiki pages in a
batch mode (ex. with a script and a java program).
In the same way I would like to execute an import.
Is there an easy way to do this?
Looking forward in the xwiki sources I found two classes that seem to do
what I want:
* com.xpn.xwiki.tool.backup.ExporterMain
* com.xpn.xwiki.tool.backup.ImporterMain
Both classes are in the maven plugin called xwiki-packager-plugin.
Is there any documentation that explain how use that plugin?
You could also write a Groovy script that uses the
com.xpn.xwiki.plugin.packager plugin.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/