On Jan 19, 7:43 pm, Will Gorman <
[hidden email]> wrote:
> The exception from the logs seems to indicate that it was
> unable to delete the config.xml for the project but I'm not sure why. I've
> attached the stack trace from the exception.
if(destFile.exists() && !destFile.delete()) {
tmpFile.delete();
throw new IOException("Unable to delete "+destFile);
}
Unfortunately File.delete gives no indication of cause.
http://download.oracle.com/javase/7/docs/api/java/nio/file/Path.html#delete%28%29might provide better diagnostics such as a Windows error code; Hudson
would have to refer to this JDK 7 class reflectively, though.