提交 65890a2f 编写于 作者: K kohsuke

try to make it writable by using a Mustang feature.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5368 71c3de6d-444a-0410-be80-ed276b4c234a
上级 613713ca
......@@ -137,6 +137,13 @@ public class Util {
LOGGER.log(Level.INFO,"Failed to chmod "+f,e);
}
// also try JDK6-way of doing it.
try {
f.setWritable(true);
} catch (NoSuchMethodError e) {
// not JDK6
}
if(!f.delete() && f.exists())
throw new IOException("Unable to delete " + f.getPath());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册