You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gb...@apache.org on 2018/02/25 11:00:56 UTC

[maven-pmd-plugin] branch master updated: Make IT runnable both on Windows and Linux.

This is an automated email from the ASF dual-hosted git repository.

gboue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new d79b0a2  Make IT runnable both on Windows and Linux.
d79b0a2 is described below

commit d79b0a2fdfd01e2415b9ba2119c76cf3bac01536
Author: Guillaume Boué <gb...@apache.org>
AuthorDate: Sun Feb 25 01:11:19 2018 +0100

    Make IT runnable both on Windows and Linux.
---
 src/it/MPMD-244-logging/verify.groovy | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/it/MPMD-244-logging/verify.groovy b/src/it/MPMD-244-logging/verify.groovy
index 1e906a6..459b2b9 100644
--- a/src/it/MPMD-244-logging/verify.groovy
+++ b/src/it/MPMD-244-logging/verify.groovy
@@ -21,8 +21,11 @@ File buildLog = new File( basedir, 'build.log' )
 assert buildLog.exists()
 assert buildLog.text.contains( "PMD processing errors" )
 assert buildLog.text.contains( "Error while parsing" )
-String currentDir = basedir.getCanonicalPath()
+
+String disabledPath = new File( basedir, 'logging-disabled/src/main/java/BrokenFile.java' ).getCanonicalPath()
+String enabledPath = new File( basedir, 'logging-enabled/src/main/java/BrokenFile.java' ).getCanonicalPath()
+
 // 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" )
+assert 1 == buildLog.text.count( "net.sourceforge.pmd.PMDException: Error while parsing ${disabledPath}" )
 // 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" )
+assert 2 == buildLog.text.count( "net.sourceforge.pmd.PMDException: Error while parsing ${enabledPath}" )

-- 
To stop receiving notification emails like this one, please contact
gboue@apache.org.