On Tue, Dec 6, 2011 at 8:34 AM, Richard Hierlmeier
<[email protected]> 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/xwiki-platform-tool-packager-plugin
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/xwiki-platform-web/src/main/webapp/templates/importinline.vm.
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
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to