From 6eb6e0968244a48d82cb18999859114b34091a6e Mon Sep 17 00:00:00 2001 From: Bruno Bowden Date: Sat, 22 Aug 2015 17:42:10 -0700 Subject: [PATCH] Slashy String regex error for matchRegexOutputs --- .../com/github/j2objccontrib/j2objcgradle/tasks/Utils.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/groovy/com/github/j2objccontrib/j2objcgradle/tasks/Utils.groovy b/src/main/groovy/com/github/j2objccontrib/j2objcgradle/tasks/Utils.groovy index 0b192bed..2c717a52 100644 --- a/src/main/groovy/com/github/j2objccontrib/j2objcgradle/tasks/Utils.groovy +++ b/src/main/groovy/com/github/j2objccontrib/j2objcgradle/tasks/Utils.groovy @@ -296,7 +296,9 @@ class Utils { Matcher stdMatcher = (stdout.toString() =~ regex) Matcher errMatcher = (stderr.toString() =~ regex) // Requires a capturing group in the regex - String assertFailMsg = "matchRegexOutputs must have '(...)' capture group, regex: '$regex'" + String assertFailMsg = + "matchRegexOutputs must have '(...)' capture group, regex: " + + escapeSlashyString(regex) assert stdMatcher.groupCount() >= 1, assertFailMsg assert errMatcher.groupCount() >= 1, assertFailMsg