My bad, with that, it is working well in my xwiki page :-)
xc = xcontext.getContext()
gArch.removeVersions(gArch.getLatestVersion(),
gArch.getPrevVersion(gArch.getPrevVersion(gArch.getLatestVersion())),xc)
En date de : Lun 4.4.16, Pascal BASTIEN a éc
Hi,
I can't understand an error when I launch a groovy script from a wiki page but
I haven't error when my groovy script is launched in scheduler...
My nice script delete previous version of MyPage with removeVersions methods:
MyGroupAuto = xwiki.getDocument("Space.MyPage")
// r