maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r1629309 - /maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-224/verify.groovy
Date Fri, 03 Oct 2014 20:24:09 GMT
Author: jdcasey
Date: Fri Oct  3 20:24:08 2014
New Revision: 1629309

URL: http://svn.apache.org/r1629309
Log:
now that plexus-compiler-api messages are being cleaned up (PR#24) we can make the integration
test verification more strict

Modified:
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-224/verify.groovy

Modified: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-224/verify.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-224/verify.groovy?rev=1629309&r1=1629308&r2=1629309&view=diff
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-224/verify.groovy (original)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-224/verify.groovy Fri Oct 
3 20:24:08 2014
@@ -18,10 +18,10 @@
  */
 def log = new File( basedir, 'build.log').text
 
-def noteExists = log =~ /\[INFO\] (\w+: )?NOTE Test message\./
-def otherExists =  log =~ /\[INFO\] (\w+: )?OTHER Test message\./
-def warningExists = log =~ /\[WARNING\] (\w+: )?WARNING Test message\./
-def mandatoryWarningExists = log =~ /\[WARNING\] (\w+: )?MANDATORY_WARNING Test message\./
+def noteExists = log.contains("[INFO] NOTE Test message.")
+def otherExists =  log.contains("[INFO] OTHER Test message.")
+def warningExists = log.contains("[WARNING] WARNING Test message.")
+def mandatoryWarningExists = log.contains("[WARNING] MANDATORY_WARNING Test message.")
 
 def fail = false
 def messages = "The following assertions were violated:"



Mime
View raw message