Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Feb 10, 2024
1 parent ad96194 commit 5a35926
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,10 @@ protected Integer getSizeThreshold() {

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);
Expand Down

0 comments on commit 5a35926

Please sign in to comment.