提交 285bf38b 编写于 作者: K kohsuke

removed the usage of deprecated methods

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19558 71c3de6d-444a-0410-be80-ed276b4c234a
上级 9e7e52e0
......@@ -204,7 +204,7 @@ public abstract class FileSystemProvisioner implements ExtensionPoint, Describab
File wss = new File(build.getRootDir(),"workspace.zip");
OutputStream os = new BufferedOutputStream(new FileOutputStream(wss));
try {
ws.createZipArchive(os);
ws.zip(os);
} finally {
os.close();
}
......
......@@ -199,7 +199,7 @@ public final class DirectoryBrowserSupport implements HttpResponse {
if(baseFile.isDirectory()) {
if(zip) {
rsp.setContentType("application/zip");
baseFile.createZipArchive(rsp.getOutputStream(),rest);
baseFile.zip(rsp.getOutputStream(),rest);
return;
}
if (plain) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册