mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
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:
1 parent
47aa3fd134
commit
8e5fe562be
4 files changed
+3
-7
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user