aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2022-01-01 16:31:14 +0000
committerDominik Stadler <centic@apache.org>2022-01-01 16:31:14 +0000
commit4fd458cae1b2c55ae71bd3bd7ada7880332555f1 (patch)
tree187e4d8b67a45d705dfb1830b624d5e5a4ed43a4
parent1176b0002d8614f4d90e071d9647381818e757b9 (diff)
downloadpoi-4fd458cae1b2c55ae71bd3bd7ada7880332555f1.tar.gz
poi-4fd458cae1b2c55ae71bd3bd7ada7880332555f1.zip
Define some system properties differently in tests
They seem to not take effect otherwise git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896602 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--build.gradle10
1 files changed, 5 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle
index 99a82f1bf3..18d55e27a8 100644
--- a/build.gradle
+++ b/build.gradle
@@ -272,12 +272,7 @@ subprojects {
// Specifying the local via system properties did not work, so we set them this way
jvmArgs << [
- '-Djava.io.tmpdir=build',
- '-DPOI.testdata.path=../test-data',
'-Djava.awt.headless=true',
- '-Djava.locale.providers=JRE,CLDR',
- '-Duser.language=en',
- '-Duser.country=US',
'-Djavax.xml.stream.XMLInputFactory=com.sun.xml.internal.stream.XMLInputFactoryImpl',
"-Dversion.id=${project.version}",
'-ea',
@@ -319,9 +314,14 @@ subprojects {
// http://forums.gradle.org/gradle/topics/jacoco_related_failure_in_multiproject_build
systemProperties['user.dir'] = workingDir
+ systemProperties['java.io.tmpdir'] = 'build'
systemProperties['POI.testdata.path'] = '../test-data'
+ // define the locale to not have failing tests when the locale is set differently on the current machine
+ systemProperties['user.language'] = 'en'
+ systemProperties['user.country'] = 'US'
+
// this is necessary for JDK 9+ to keep formatting dates the same way as in previous JDK-versions
systemProperties['java.locale.providers'] = 'JRE,CLDR'