提交 796238d0 编写于 作者: K kohsuke

added a convenience method.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7804 71c3de6d-444a-0410-be80-ed276b4c234a
上级 8f04c4b9
......@@ -55,4 +55,12 @@ public class AtomicFileWriter extends Writer {
throw new IOException("Unable to delete "+destFile);
tmpFile.renameTo(destFile);
}
/**
* Until the data is committed, this file captures
* the written content.
*/
public File getTemporaryFile() {
return tmpFile;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册