Hi,
I doubt there is any java level documentation on import/export but you
can look at some good examples of how to use packager plugin :
- com.xpn.xwiki.web.ExportAction#exportXAR(XWikiContext)
- com.xpn.xwiki.web.ImportAction#render(XWikiContext)
On Mon, May 5, 2008 at 3:19 PM, Lorenzo Manzoni <lmanzoni(a)imolinfo.it> 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?
thanks,
Lorenzo
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne