]> source.dussan.org Git - jgit.git/commitdiff
Set default file encoding used for JGit tests to UTF-8 14/1314/1
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 16 Aug 2010 15:42:41 +0000 (17:42 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 16 Aug 2010 15:42:41 +0000 (17:42 +0200)
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>
org.eclipse.jgit.test/pom.xml

index b8d5bc7eadcc13fbb21a6ed3f3d38f91362986fe..892755957f300d49ce90d18b9f957e0d66f756ba 100644 (file)
         <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>