getRootDir() isn't avaiable when it's called from the constructor (see #740), so instead make sure XmlFile creates directories.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4327 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-08-18 14:16:19 +00:00
1 parent 47aa3fd134
commit 8e5fe562be
4 files changed
+3 -7

No files matched your search

+1
View File
@@ -131,6 +131,7 @@ public final class XmlFile {
}
public void write( Object o ) throws IOException {
mkdirs();
AtomicFileWriter w = new AtomicFileWriter(file);
try {
w.write("<?xml version='1.0' encoding='UTF-8'?>\n");