mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Force UTF-8 encoding in all tests. This fixes several test failures when running tests from Windows commandline because Windows doesn't default to using UTF-8.
This commit is contained in:
10
pom.xml
10
pom.xml
@@ -531,10 +531,10 @@
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<!-- Allow for passing extra memory to Unit/Integration tests.
|
||||
By default this gives unit tests 1GB of memory max (when tests are enabled),
|
||||
unless tweaked on commandline (e.g. "-Dtest.argLine=-Xmx512m"). Since
|
||||
m-surefire-p and m-failsafe-p both fork a new JVM for testing, they ignores MAVEN_OPTS. -->
|
||||
<!-- Profile which sets our default system properties for all Unit/Integration tests.
|
||||
By default, this sets UTF-8 encoding for all tests and gives tests 1GB of memory max.
|
||||
Both m-surefire-p and m-failsafe-p are unable to use MAVEN_OPTS because they fork a new JVM for testing.
|
||||
These default settings may be overridden via the commandline (e.g. "-Dtest.argLine=-Xmx512m"). -->
|
||||
<profile>
|
||||
<id>test-argLine</id>
|
||||
<activation>
|
||||
@@ -543,7 +543,7 @@
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<test.argLine>-Xmx1024m</test.argLine>
|
||||
<test.argLine>-Xmx1024m -Dfile.encoding=UTF-8</test.argLine>
|
||||
</properties>
|
||||
</profile>
|
||||
|
||||
|
Reference in New Issue
Block a user