You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2018/09/07 02:25:27 UTC
[maven-surefire] branch INV1561 updated: [SUREFIRE-1565] Surefire
should support parameterized reportsDirectory
This is an automated email from the ASF dual-hosted git repository.
tibordigana pushed a commit to branch INV1561
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/INV1561 by this push:
new c196e15 [SUREFIRE-1565] Surefire should support parameterized reportsDirectory
c196e15 is described below
commit c196e15c36b17abf33edb0d76aa010cbca71a68b
Author: Tibor17 <ti...@apache.org>
AuthorDate: Fri Sep 7 04:25:15 2018 +0200
[SUREFIRE-1565] Surefire should support parameterized reportsDirectory
---
.../org/apache/maven/surefire/its/fixture/TestFile.java | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/TestFile.java b/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/TestFile.java
index abf17cb..cc942ad 100644
--- a/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/TestFile.java
+++ b/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/TestFile.java
@@ -54,9 +54,16 @@ public class TestFile
public TestFile( File file, Charset charset, OutputValidator surefireVerifier )
{
- this.file = file;
- this.encoding = charset == null ? Charset.defaultCharset() : charset;
- this.surefireVerifier = surefireVerifier;
+ try
+ {
+ this.file = file.getCanonicalFile();
+ this.encoding = charset == null ? Charset.defaultCharset() : charset;
+ this.surefireVerifier = surefireVerifier;
+ }
+ catch ( IOException e )
+ {
+ throw new IllegalArgumentException( file.getPath() );
+ }
}
public OutputValidator assertFileExists()