You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2023/01/30 20:23:31 UTC

[logging-log4j-tools] branch windows-fixes updated: Fix file encoding related problems in tests for Windows

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

vy pushed a commit to branch windows-fixes
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git


The following commit(s) were added to refs/heads/windows-fixes by this push:
     new 8ccefb1  Fix file encoding related problems in tests for Windows
8ccefb1 is described below

commit 8ccefb16d67fd5caa923040a5477f0a90ce33648
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Jan 30 21:24:49 2023 +0100

    Fix file encoding related problems in tests for Windows
---
 log4j-tools-parent/pom.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/log4j-tools-parent/pom.xml b/log4j-tools-parent/pom.xml
index 4ba4df6..38a7a19 100644
--- a/log4j-tools-parent/pom.xml
+++ b/log4j-tools-parent/pom.xml
@@ -294,6 +294,16 @@
         </configuration>
       </plugin>
 
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <!-- AssertJ fails to use the provided encoding while comparing file contents in text.
+               Setting the JVM file encoding globally works around that problem. -->
+          <argLine>-Dfile.encoding=UTF-8</argLine>
+        </configuration>
+      </plugin>
+
     </plugins>
 
   </build>