diff --git a/src/main/org/apache/tools/ant/taskdefs/Zip.java b/src/main/org/apache/tools/ant/taskdefs/Zip.java index 0cb65be0d..56120ad20 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Zip.java +++ b/src/main/org/apache/tools/ant/taskdefs/Zip.java @@ -421,11 +421,15 @@ public class Zip extends MatchingTask { try { fileUtils.rename(zipFile, renamedFile); } catch (SecurityException e) { - throw new BuildException("Not allowed to rename old file " - + "to temporary file"); + throw new BuildException( + "Not allowed to rename old file (" + + zipFile.getAbsolutePath() + + ") to temporary file"); } catch (IOException e) { - throw new BuildException("Unable to rename old file " - + "to temporary file"); + throw new BuildException( + "Unable to rename old file (" + + zipFile.getAbsolutePath() + + ") to temporary file"); } }