Skip to content

Commit

Permalink
Use different tempdir on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
centic9 committed Nov 23, 2024
1 parent 0329bb1 commit aa21679
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ if (!project.hasProperty('sharedStringTable')) {
ext.sharedStringTable = 'true'
}

ext {
isWindows = org.gradle.internal.os.OperatingSystem.current().windows
}

/*
if (!project.hasProperty('log4jApi')) {
ext.log4jApi = '2.24.0'
Expand Down Expand Up @@ -132,7 +136,7 @@ tasks.register('runWriteFile', JavaExec) {

mainClass = 'org.dstadler.poi.TestSXSSFWorkbook'
args = [
"C:/Temp/test-" + poiVersion + "-" + compressTemp + "-" + sharedStringTable + ".xlsx",
(isWindows ? "C:/Temp/test-" : "/tmp/test-") + poiVersion + "-" + compressTemp + "-" + sharedStringTable + ".xlsx",
compressTemp,
sharedStringTable
]
Expand Down

0 comments on commit aa21679

Please sign in to comment.