Bug 62042: Adjust gradle build to properly set the locale
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1823596 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d0adab9aee
commit
316041521c
12
build.gradle
12
build.gradle
@ -101,12 +101,13 @@ subprojects {
|
|||||||
exclude '**/TestUnfixedBugs.class'
|
exclude '**/TestUnfixedBugs.class'
|
||||||
exclude '**/TestOneFile.class'
|
exclude '**/TestOneFile.class'
|
||||||
|
|
||||||
systemProperties = System.properties
|
|
||||||
|
|
||||||
// set heap size for the test JVM(s)
|
// set heap size for the test JVM(s)
|
||||||
minHeapSize = "128m"
|
minHeapSize = "128m"
|
||||||
maxHeapSize = "768m"
|
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
|
// show standard out and standard error of the test JVM(s) on the console
|
||||||
//testLogging.showStandardStreams = true
|
//testLogging.showStandardStreams = true
|
||||||
|
|
||||||
@ -114,15 +115,8 @@ subprojects {
|
|||||||
systemProperties['user.dir'] = workingDir
|
systemProperties['user.dir'] = workingDir
|
||||||
|
|
||||||
systemProperties['POI.testdata.path'] = '../../test-data'
|
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 {
|
jacoco {
|
||||||
toolVersion = '0.7.9'
|
toolVersion = '0.7.9'
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ import static org.junit.Assert.assertTrue;
|
|||||||
|
|
||||||
import org.apache.poi.ss.usermodel.helpers.ColumnShifter;
|
import org.apache.poi.ss.usermodel.helpers.ColumnShifter;
|
||||||
|
|
||||||
public class BaseTestColumnShifting {
|
public abstract class BaseTestColumnShifting {
|
||||||
protected Workbook wb;
|
protected Workbook wb;
|
||||||
protected Sheet sheet1;
|
protected Sheet sheet1;
|
||||||
protected ColumnShifter columnShifter;
|
protected ColumnShifter columnShifter;
|
||||||
|
Loading…
Reference in New Issue
Block a user