update script

This commit is contained in:
Shinsuke Sugaya 2024-02-10 10:56:20 +09:00
parent ad96194f59
commit 5a35926558
2 changed files with 4 additions and 8 deletions

View file

@ -16,17 +16,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'temurin'
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

View file

@ -328,13 +328,10 @@ public class FessMultipartRequestHandler implements MultipartRequestHandler {
protected String getRepositoryPath() {
final File tempDirFile = (File) LaServletContextUtil.getServletContext().getAttribute(ServletContext.TEMPDIR);
System.out.println("XXX " + tempDirFile);
if (tempDirFile != null) {
final String tempDir = tempDirFile.getAbsolutePath();
System.out.println("XXX " + tempDir);
if (StringUtil.isNotBlank(tempDir)) {
System.out.println("XXX " + System.getProperty(JAVA_IO_TMPDIR_KEY));
// return tempDir;
return tempDir;
}
}
return System.getProperty(JAVA_IO_TMPDIR_KEY);