On Mon, May 5, 2008 at 11:46 AM, Sergiu Dumitriu <sergiu(a)xwiki.com> wrote:
You could also write a Groovy script that uses the
com.xpn.xwiki.plugin.packager plugin.
Yes, something like :
<%
import com.xpn.xwiki.doc.XWikiAttachment;
def importer = context.context.getWiki().getPluginApi("package",
rcontext)
def packDoc =
rcontext.getWiki().getDocument("xwiki:XWiki.Import", rcontext)
XWikiAttachment packFile = packDoc.getAttachment("myarchive.xar")
importer.Import(packFile.getContent(rcontext))
importer.setWithVersions(false)
importer.install()
%>
--
Jean-Vincent Drean