Author: centic
Date: Sat Jan 1 16:31:14 2022
New Revision: 1896602
URL: http://svn.apache.org/viewvc?rev=1896602&view=rev
Log:
Define some system properties differently in tests
They seem to not take effect otherwise
Modified:
poi/trunk/build.gradle
Modified: poi/trunk/build.gradle
URL:
http://svn.apache.org/viewvc/poi/trunk/build.gradle?rev=1896602&r1=1896601&r2=1896602&view=diff
==============================================================================
--- poi/trunk/build.gradle (original)
+++ poi/trunk/build.gradle Sat Jan 1 16:31:14 2022
@@ -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'
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]