Forum Discussion
Anonymous
3 years agoJust now, Mike Moniz said:groovy can import internal/collector functions like hostProps.get() without having the collector needing to directly modifying your code with search-replace
Yes, that is true. What I mean is that to escape a quote in a string in Groovy, you do it the same whether it's single quotes or double quotes encapsulating the string:
def string1 = "mystring\"withquotes" def string2 = 'mystring\"withquotes' assert string1 == string2
Related Content
- 11 months ago
- 8 months ago