本文整理了Java中org.codehaus.cargo.container.installer.ZipURLInstaller.download()
方法的一些代码示例,展示了ZipURLInstaller.download()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipURLInstaller.download()
方法的具体详情如下:
包路径:org.codehaus.cargo.container.installer.ZipURLInstaller
类名称:ZipURLInstaller
方法名:download
[英]Downloads the zip file containing the container files.
[中]下载包含容器文件的zip文件。
代码示例来源:origin: codehaus-cargo/cargo
this.getClass().getName());
download();
sourceFile.delete();
download();
try
代码示例来源:origin: codehaus-cargo/cargo
/**
* Test {@link ZipURLInstaller#install()} successful with no proxy.
* @throws Exception If anything goes wrong.
*/
public void testSuccessfulDownloadWhenNoProxySet() throws Exception
{
// Clear any proxy setting
new Proxy().clear();
this.installer.setAntTaskFactory(
new AntTaskFactory()
{
@Override
public Task createTask(String taskName)
{
return new HarmlessGet();
}
});
this.installer.download();
assertNull("Proxy host should not have been set", System.getProperty("http.proxyHost"));
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* Test {@link ZipURLInstaller#install()} successful with a proxy.
* @throws Exception If anything goes wrong.
*/
public void testSuccessfulDownloadWhenProxySet() throws Exception
{
this.installer.setAntTaskFactory(
new AntTaskFactory()
{
@Override
public Task createTask(String taskName)
{
return new HarmlessGet();
}
});
Proxy proxy = new Proxy();
proxy.setHost("proxyhost");
this.installer.setProxy(proxy);
this.installer.download();
assertEquals(System.getProperty("http.proxyHost"), proxy.getHost());
}
代码示例来源:origin: codehaus-cargo/cargo
this.installer.setProxy(proxy);
this.installer.download();
代码示例来源:origin: org.codehaus.cargo/cargo-ant
if (!installer.isAlreadyDownloaded())
installer.download();
代码示例来源:origin: codehaus-cargo/cargo
if (!installer.isAlreadyDownloaded())
installer.download();
代码示例来源:origin: codehaus-cargo/cargo
installer.download();
installer.download();
内容来源于网络,如有侵权,请联系作者删除!