zorglups
6 years agoOccasional Contributor
Property Expansion Dynamic Expression issue with brace character.
Here is my Property Dynamic Expression:
${= use (groovy.time.TimeCategory) {2.years.from.now.format('yyyy-MM-dd')}}
Upon evaluation, this trows this error:
startup failed:
Script47.groovy: 1: expecting '}', found '' @ line 1, column 71.
.from.now.format('yyyy-MM-dd')
^
org.codehaus.groovy.syntax.SyntaxException: expecting '}', found '' @ line 1, column 71.
at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:143)
Well. I understand that I cannot use braces but then how can I achieve my goal ?
Isn't there a way to escape the braces ?
Thank you.
Pierre