groovy block comment and special chars in string

Viewed 9794

Gradle

/*

def v = "**/*.xml"

*/

Groovy think the */ inside the string is the end of block comment.

1 Answers

If you are commenting out a block of (syntactically correct) code, I find it easier to use if(false) {...} to avoid this problem.

Related