On Tue, Dec 6, 2011 at 8:34 AM, Richard Hierlmeier
<rhierlmeier(a)googlemail.com> wrote:
I am currently working on an installer for our domain specific XWiki
distribution. During the installation we have to import a xar file with our
wiki pages.
Do we have in XWiki an API for importing xar files?
What are the preconditions for importing xar files? Must XWiki be started or
can the import be done offline (during the installation phase)?
Officially there is no such thing as a tool to externally import a XAR
in a database without XWiki running. That said you can find in
https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-tools/xw…
a pile of hacks to allow importing a XAR into a database during maven
build.
In a running instance of XWiki you can simply do exactly the same
thing that import UI does which is using the packager plugin. See
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi….
You can also find several script with example of importing a
xar/folder on
extensions.xwiki.org (see
http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import
for example).
Richard
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne