You also need to escape \ itself to be complete. If you were using
model script service as Vincent suggested you would not need to worry
about escaping.
On Thu, Sep 3, 2015 at 5:10 PM, qvendeville
wrote:
> Thanks Vincent for your answer, but I found a solution :)
>
> I must espace the dot in the
Thanks Vincent for your answer, but I found a solution :)
I must espace the dot in the docName when I get my document, not in the
rename method :
document =
xwiki.getDocument(spaceName+"."+docName.replace(".","\\."),context);
--
View this message in context:
http://xwiki.475771.n2.nabble.c
Hi,
On 3 Sep 2015 at 15:49:55, qvendeville
(quentin.vendevi...@capgemini.com(mailto:quentin.vendevi...@capgemini.com))
wrote:
> Hi,
>
> I try to rename document to put them in the same space.
> I did it with a groovy script but i have a problem ; documents which contain
> dot are not renam
Hi,
I try to rename document to put them in the same space.
I did it with a groovy script but i have a problem ; documents which contain
dot are not renamed.
This is my script :
{{groovy}}
def context = xcontext.getContext();
def xwiki = context.getWiki();
String spaceDestination = "NewSpace"
de