peterreilly    2003/11/26 01:31:45

  Modified:    src/main/org/apache/tools/ant/taskdefs Zip.java
  Log:
  add filename to errormessage if unable to rename file in zip task
  PR: 24945
  Obtained from: Bart Vanhaute
  
  Revision  Changes    Path
  1.118     +8 -4      ant/src/main/org/apache/tools/ant/taskdefs/Zip.java
  
  Index: Zip.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Zip.java,v
  retrieving revision 1.117
  retrieving revision 1.118
  diff -u -r1.117 -r1.118
  --- Zip.java  14 Oct 2003 13:19:52 -0000      1.117
  +++ Zip.java  26 Nov 2003 09:31:45 -0000      1.118
  @@ -421,11 +421,15 @@
                   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");
                   }
               }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to