From a8452b54b57a0cdde8bd6570470141d0ed6d91ec Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Sat, 31 Aug 2024 11:30:18 +0900 Subject: [PATCH] Polish See gh-42069 --- .../boot/buildpack/platform/build/BuildLog.java | 1 + .../gradle/tasks/bundling/BootBuildImageIntegrationTests.java | 4 ++-- .../java/org/springframework/boot/maven/BuildImageTests.java | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/BuildLog.java b/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/BuildLog.java index c753db8bb84..2f21bfa653e 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/BuildLog.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/BuildLog.java @@ -118,6 +118,7 @@ public interface BuildLog { * Log that a cache cleanup step was not completed successfully. * @param cache the cache * @param exception any exception that caused the failure + * @since 3.2.6 */ void failedCleaningWorkDir(Cache cache, Exception exception); diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/dockerTest/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImageIntegrationTests.java b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/dockerTest/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImageIntegrationTests.java index 48536e53675..219b150cc0d 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/dockerTest/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImageIntegrationTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/dockerTest/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImageIntegrationTests.java @@ -320,9 +320,9 @@ class BootBuildImageIntegrationTests { cleanupCache(launchCachePath); } - private static void cleanupCache(Path buildCachePath) { + private static void cleanupCache(Path cachePath) { try { - FileSystemUtils.deleteRecursively(buildCachePath); + FileSystemUtils.deleteRecursively(cachePath); } catch (Exception ex) { // ignore diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/dockerTest/java/org/springframework/boot/maven/BuildImageTests.java b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/dockerTest/java/org/springframework/boot/maven/BuildImageTests.java index 140be1a6e0a..d3ae54c0818 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/dockerTest/java/org/springframework/boot/maven/BuildImageTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/dockerTest/java/org/springframework/boot/maven/BuildImageTests.java @@ -443,9 +443,9 @@ class BuildImageTests extends AbstractArchiveIntegrationTests { }); } - private static void cleanupCache(Path buildCachePath) { + private static void cleanupCache(Path cachePath) { try { - FileSystemUtils.deleteRecursively(buildCachePath); + FileSystemUtils.deleteRecursively(cachePath); } catch (Exception ex) { // ignore