Author: centic
Date: Thu Feb  8 19:34:22 2018
New Revision: 1823596

URL: http://svn.apache.org/viewvc?rev=1823596&view=rev
Log:
Bug 62042: Adjust gradle build to properly set the locale

Modified:
    poi/trunk/build.gradle
    
poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java

Modified: poi/trunk/build.gradle
URL: 
http://svn.apache.org/viewvc/poi/trunk/build.gradle?rev=1823596&r1=1823595&r2=1823596&view=diff
==============================================================================
--- poi/trunk/build.gradle (original)
+++ poi/trunk/build.gradle Thu Feb  8 19:34:22 2018
@@ -101,11 +101,12 @@ subprojects {
                exclude '**/TestUnfixedBugs.class'
                exclude '**/TestOneFile.class'
 
-        systemProperties = System.properties
-    
         // set heap size for the test JVM(s)
         minHeapSize = "128m"
         maxHeapSize = "768m"
+
+        // Specifying the local via system properties did not work, so we set 
them this way
+        jvmArgs '-Duser.language=en -Duser.country=US'
   
         // show standard out and standard error of the test JVM(s) on the 
console
         //testLogging.showStandardStreams = true
@@ -114,15 +115,8 @@ subprojects {
         systemProperties['user.dir'] = workingDir
         
         systemProperties['POI.testdata.path'] = '../../test-data'
-        //systemProperties['user.language'] = 'en'
-        //systemProperties['user.country'] = 'US'
     }
 
-       test.beforeSuite { TestDescriptor suite ->
-          System.setProperty('user.language', 'en')
-          System.setProperty('user.country', 'US')
-       }
-
     jacoco {
         toolVersion = '0.7.9'
     }

Modified: 
poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java?rev=1823596&r1=1823595&r2=1823596&view=diff
==============================================================================
--- 
poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java 
(original)
+++ 
poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java 
Thu Feb  8 19:34:22 2018
@@ -26,7 +26,7 @@ import static org.junit.Assert.assertTru
 
 import org.apache.poi.ss.usermodel.helpers.ColumnShifter;
 
-public class BaseTestColumnShifting {
+public abstract class BaseTestColumnShifting {
     protected Workbook wb;
     protected Sheet sheet1;
     protected ColumnShifter columnShifter;



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to