提交 d4702598 编写于 作者: K kohsuke

[HUDSON-1461] reducing the amount of bogus error messages that Hudson prints during start up.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11803 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d471b98d
......@@ -162,7 +162,11 @@ public final class RunMap<R extends Run<?,R>> extends AbstractMap<Integer,R> imp
buildDir.mkdirs();
String[] buildDirs = buildDir.list(new FilenameFilter() {
public boolean accept(File dir, String name) {
return new File(dir,name).isDirectory();
// HUDSON-1461 sometimes create bogus data directories with impossible dates, such as year 0.
// Date object doesn't roundtrip year 0 (year is -2,-1,+1,+2,... and there's no zero),
// so we eventually fail to load this data.
// so don't even bother trying.k
return !name.startsWith("0000") && new File(dir,name).isDirectory();
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册