The syntax did not really changed but as indicated on
http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import
you have to make sure you use xwiki/1.0 syntax for this snippet to
work. In 5.0 the xwiki/1.0 syntax is not listed anymore by default,
you can enable it in xwiki.cfg with the xwiki.rendering.syntaxes
property.

Rewriting It is a bit more complex than changing <% with {{groovy}},
the main difference is that in the old syntax you can stop groovy in
the middle of a if/for to print something and go back to groovy which
is not supported by {{groovy}} macro. So the rewrite is mostly about
adding a lot of println. I need to find some time to do it...

On Mon, May 20, 2013 at 6:55 AM, Erik Engstrom <[email protected]> wrote:
> Hey all,
>
> I inherited an xwiki 3.5 installation that used hsqldb.  I want to move to
> 5.0.1 and mysql.  The new instance is up and running and I was able to
> export a XAR file from the old system.  However the XAR file is 184MB in
> size so the regular import says it is too big.
>
> I tried the script here:
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import
>
> But it seems the syntax has changed.  I tried to replace the <% with
> {{groovy}} and %> with {{/groovy}} but then get a bunch of errors.
>
> Can some one point me to an upgraded version?  Is there a better way to do
> this?
>
> Thanks,
>
> Erik
> _______________________________________________
> 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