There is 1 update.
 
 
XWiki Commons / cid:jira-generated-image-avatar-61db4dc6-1330-4192-9f42-ce0f3786d393 XCOMMONS-3343 Open

Pre-/appending additional text when using INSERT_TEXT in Maven Plugin "xwiki-commons-tool-xar-plugin"

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-0d380175-8212-4d9a-b930-b71f131caa2c Changes by Ralf on 22/May/25 16:41
 
Description: Assume you are using Maven plugin "xwiki-commons-tool-xar-plugin" for adding the content of a groovy file to an XWiki xml file.
Using transformation action INSERT_TEXT is doing a good job here.
But now assume that you want that inserted groovy action be prepended with
{{{} _{ \ {groovy wiki="false" _{ }} }{ _   }}}{_} and appended with \ { \{{ _}{ \ {/groovy \ } \ } }} {_}.
I think this is currently not possible- you have to add that lines to the goovy file itself, but then it's no real groovy file any longer.
Would be great if we could add two parameters to the INSERT_TEXT action to allow this - or whatever idea you have to solve that issue?
Thank you very much in advance.