You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ad...@apache.org on 2019/08/01 19:04:18 UTC
[maven-pmd-plugin] 01/02: output build-log in case of failure
This is an automated email from the ASF dual-hosted git repository.
adangel pushed a commit to branch it-mpmd-187
in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git
commit 9fe044b9b580507f6dec0513375f4f465fd1136e
Author: Andreas Dangel <ad...@apache.org>
AuthorDate: Thu Aug 1 21:03:41 2019 +0200
output build-log in case of failure
---
src/it/MPMD-187/verify.groovy | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/it/MPMD-187/verify.groovy b/src/it/MPMD-187/verify.groovy
index 4af16b7..996b217 100644
--- a/src/it/MPMD-187/verify.groovy
+++ b/src/it/MPMD-187/verify.groovy
@@ -21,6 +21,11 @@ File buildLog = new File( basedir, 'build.log' )
assert buildLog.exists()
File pmdXml = new File( basedir, "target/pmd.xml" )
+
+if ( pmdXml.exists() )
+{
+ throw new AssertionError( buildLog.getText() )
+}
assert !pmdXml.exists()
File cpdXml = new File( basedir, "target/cpd.xml" )