Skip to content
Advertisement

Tag: groovy

Eclipse error when trying to configure for using Groovy in a Gradle project

On a Windows machine I’ve been using Groovy in Gradle projects in Eclipse for some time now. Now I’m trying to configure for a Linux machine. (Linux Mint MATE). uname -a gives this: Linux mike-Latitude-E6410 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:58:04 UTC 2016 i686 i686 i686 GNU/Linux Eclipse Oxygen. Installed Groovy (2.4.15) using this link: http://dist.springsource.org/snapshot/GRECLIPSE/e4.7/ Installed Gradle (4.7)

Replacing string with variable with Groovy and SED command

I am trying to replace an entire description string contained in an XML file. I would like to replace that string with a variable. I am using a SED command within a Groovy script. I have the following code. I am expecting the string “foo” to replace the description text but it doesn’t. Instead the following line causes the XML

Advertisement