提交 f66c670f 编写于 作者: K kohsuke

added more debug probe

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9465 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5f278c84
......@@ -44,6 +44,7 @@ import java.util.Map;
import java.util.ResourceBundle;
import java.util.SimpleTimeZone;
import java.util.StringTokenizer;
import java.util.Arrays;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Matcher;
......@@ -173,8 +174,15 @@ public class Util {
makeWritable(f.getParentFile());
if(!f.delete() && f.exists())
if(!f.delete() && f.exists()) {
// trouble-shooting.
// see http://www.nabble.com/Sometimes-can%27t-delete-files-from-hudson.scm.SubversionSCM%24CheckOutTask.invoke%28%29-tt17333292.html
// I suspect other processes putting files in this directory
File[] files = f.listFiles();
if(files!=null && files.length>0)
throw new IOException("Unable to delete " + f.getPath()+" - files in dir: "+Arrays.asList(files));
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.
先完成此消息的编辑!
想要评论请 注册