This is an automated email from the ASF dual-hosted git repository. adangel pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git
commit 8ea1ca954d32740a464e1285efa458d44898235c Author: Andreas Dangel <adan...@apache.org> AuthorDate: Mon Dec 18 20:11:44 2017 +0100 [MPMD-244] Maven PMD plugin fails but no reason is given for the failure Fix integration test --- src/it/MPMD-244-logging/verify.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/it/MPMD-244-logging/verify.groovy b/src/it/MPMD-244-logging/verify.groovy index f213605..1e906a6 100644 --- a/src/it/MPMD-244-logging/verify.groovy +++ b/src/it/MPMD-244-logging/verify.groovy @@ -22,5 +22,7 @@ assert buildLog.exists() assert buildLog.text.contains( "PMD processing errors" ) assert buildLog.text.contains( "Error while parsing" ) String currentDir = basedir.getCanonicalPath() -assert buildLog.text.contains( "net.sourceforge.pmd.PMDException: Error while parsing ${currentDir}/logging-enabled/src/main/java/BrokenFile.java" ) -assert ! buildLog.text.contains( "net.sourceforge.pmd.PMDException: Error while parsing ${currentDir}/logging-disabled/src/main/java/BrokenFile.java" ) +// logging disabled: the pmd exception is only output through the processing error reporting (since MPMD-246) +assert 1 == buildLog.text.count( "net.sourceforge.pmd.PMDException: Error while parsing ${currentDir}/logging-disabled/src/main/java/BrokenFile.java" ) +// logging enabled: the pmd exception is output twice: through the processing error reporting (since MPMD-246) and through PMD's own logging +assert 2 == buildLog.text.count( "net.sourceforge.pmd.PMDException: Error while parsing ${currentDir}/logging-enabled/src/main/java/BrokenFile.java" ) -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.