diff --git a/tests/jetty-home-tester/src/main/java/org/eclipse/jetty/tests/hometester/JettyHomeTester.java b/tests/jetty-home-tester/src/main/java/org/eclipse/jetty/tests/hometester/JettyHomeTester.java index 1f36b23c192..a40e40d088f 100644 --- a/tests/jetty-home-tester/src/main/java/org/eclipse/jetty/tests/hometester/JettyHomeTester.java +++ b/tests/jetty-home-tester/src/main/java/org/eclipse/jetty/tests/hometester/JettyHomeTester.java @@ -347,11 +347,14 @@ public class JettyHomeTester // create tmp directory to unzip distribution Path homes = MavenTestingUtils.getTargetTestingPath("homes"); FS.ensureDirExists(homes); - Path tmp = Files.createTempDirectory(homes, "jetty_home_"); + Path tmp = Files.createDirectories(homes.resolve(Long.toString(artifactFile.toFile().lastModified()))); + Path home = tmp.resolve("jetty-home-" + version); + if (!Files.exists(home)) + { + unzip(artifactFile, tmp); + } - unzip(artifactFile, tmp); - - return tmp.resolve("jetty-home-" + version); + return home; } private RepositorySystem newRepositorySystem()