On Tue, May 21, 2013 at 9:28 AM, Vincent Massol <[email protected]> wrote:
Hi Thomas,
On May 21, 2013, at 9:12 AM, Thomas Mortagne <[email protected]> wrote:
I just converted http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import to xwiki/2.x syntax.
I did not heavily tested it so it's possible you get a groovy syntax error (if you do it's probably a \ missing around the line indicated in the error).
There's a nice groovy syntax for this. You can use:
println """ {{html}} <form action="" method="post"> <table border="0"> … """
That's nice indeed.
(See multiline string at http://groovy.codehaus.org/Strings+and+GString )
Thanks -Vincent
PS: Also you don't need ";" at end of line ;)
I know but it's mostly Java code copied a long time ago into groovy.
On Mon, May 20, 2013 at 5:02 PM, Erik Engstrom <[email protected]> wrote:
Sorry meant dropdown not download. the drop down box still only has 2.0 and 2.1 as options. For now I am going to try to do the import to mysql in another 3.5 instance and then migrate that to 5.0.1. Perhaps that will work better.
On Mon, May 20, 2013 at 9:57 AM, Thomas Mortagne <[email protected]>wrote:
On Mon, May 20, 2013 at 3:45 PM, Erik Engstrom <[email protected]> wrote:
Thanks, I tried adding 1.0 syntax by changing the property to:
xwiki.rendering.syntaxes = xwiki/1.0, xwiki/2.0, xwiki/2.1
and restarting xwiki. But 1.0 is still not available in the downloads. Am I missing something?
Not sure what download you are taking about, when you edit a document you can choose its syntax in a panel on the right.
Erik
On Mon, May 20, 2013 at 8:00 AM, Thomas Mortagne <[email protected]>wrote:
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