This issue has been created
There is 1 update.
 
 
XWiki Commons / cid:jira-generated-image-avatar-fa02f9ac-0f17-445e-8921-667cbf11fa05 XCOMMONS-3343 Open

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-7084161e-4ea9-4745-bf19-4a06135c056d Ralf created this issue on 22/May/25 16:31
 
Summary: Pre-/appending additional text when using INSERT_TEXT in Maven Plugin "xwiki-commons-tool-xar-plugin"
Issue Type: cid:jira-generated-image-avatar-fa02f9ac-0f17-445e-8921-667cbf11fa05 New Feature
Assignee: Unassigned
Created: 22/May/25 16:31
Priority: cid:jira-generated-image-static-major-d6dc1799-bc21-4d23-954b-5aa6e1bf0406 Major
Reporter: Ralf
 
 

1 update

 
cid:jira-generated-image-avatar-7084161e-4ea9-4745-bf19-4a06135c056d Changes by Ralf on 22/May/25 16:40
 
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.