Hi,

I would need to implement a string literal in which the dollar char is not
interpreted as variable placeholder, indeed to use a custom character to
interpolate variables.

For example I would like define a string like this:


def DONE = 'Task completed'


def script = /%

mv file_name $HOME
echo %DONE
/%



In which the $HOME string is ignored while  %DONE is interpolated as a
groovy variable.

Is there any way to do that ?


Cheers,
Paolo

Reply via email to