Le 4 janv. 2012 à 11:13, Paul Libbrecht a écrit :
1) what would be the replacement (some scope variables in macros?)
I got it, thanks Sergiu for the URL:
http://www.xwiki.org/xwiki/bin/ReleaseNotes/ReleaseNotesXWikiEnterprise30#HT...
which allows me to rewrite my test macro working the old way with the following: #macro(redefine $var) #set($result="redefined") #set ($var = $util.null) #setVariable ("$var" $result) #end #set($x="original") x is $x #redefine($x) x is $x
2) please point me to such code, we have quite a few other maintenance needs for the velocity code and tool-supporting this would be really helpful!
This remains an interesting open question. I know we have quite a few other velocity analysis needs (e.g. the fact that some calls to msg.get are not sufficiently escaped for some languages). thanks for hints. Paul