summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2010-08-16 17:42:41 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2010-08-16 17:42:41 +0200
commit11c5c9f73b0a8cd5c18a42298fecac37cc3d2d48 (patch)
tree1419eaf00911e54899adaff2eeeab7dab711c9fb /org.eclipse.jgit.test
parent8d761febc3dd3fc3e0258a17526f6479757637f6 (diff)
downloadjgit-11c5c9f73b0a8cd5c18a42298fecac37cc3d2d48.tar.gz
jgit-11c5c9f73b0a8cd5c18a42298fecac37cc3d2d48.zip
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 <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/pom.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/pom.xml b/org.eclipse.jgit.test/pom.xml
index b8d5bc7ead..892755957f 100644
--- a/org.eclipse.jgit.test/pom.xml
+++ b/org.eclipse.jgit.test/pom.xml
@@ -126,6 +126,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version>
<configuration>
+ <argLine>-Dfile.encoding=UTF-8</argLine>
<includes>
<include>**/*Test.java</include>
<include>**/*TestCase.java</include>