From c757e62b3aca2e82b602dd149322eec422a49327 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Wed, 27 Jul 2005 16:05:45 +0000 Subject: [PATCH] PR: MNG-633 avoid leaking checksum temporary files git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@225540 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/artifact/manager/DefaultWagonManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java index 0eb8be01eb..37010fc2ca 100644 --- a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java +++ b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java @@ -475,6 +475,7 @@ public class DefaultWagonManager String actualChecksum = checksumObserver.getActualChecksum(); File checksumFile = new File( destination + checksumFileExtension ); + checksumFile.deleteOnExit(); wagon.get( remotePath + checksumFileExtension, checksumFile ); String expectedChecksum = FileUtils.fileRead( checksumFile );