From 11c5c9f73b0a8cd5c18a42298fecac37cc3d2d48 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Mon, 16 Aug 2010 17:42:41 +0200 Subject: [PATCH] Set default file encoding used for JGit tests to UTF-8 This patch fixes the problem that JGit tests run from Maven fail on Mac OS X [1]. In Eclipse the tests succeed since we set Eclipse workspace encoding to UTF-8 via "Preferences > General > Workspace > Text file encoding", checked via JConsole that this setting changes the JVM system property of the test run. This change copies this setting to the Maven test environment so that we get consistent test results on all platforms. [1] http://kerneltrap.org/mailarchive/git/2009/2/6/4916414/thread Change-Id: Ia657d4037c518411f7bc3c75626dbafb1f4706a2 Signed-off-by: Matthias Sohn --- org.eclipse.jgit.test/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/org.eclipse.jgit.test/pom.xml b/org.eclipse.jgit.test/pom.xml index b8d5bc7ea..892755957 100644 --- a/org.eclipse.jgit.test/pom.xml +++ b/org.eclipse.jgit.test/pom.xml @@ -126,6 +126,7 @@ maven-surefire-plugin 2.4.2 + -Dfile.encoding=UTF-8 **/*Test.java **/*TestCase.java