org.codehaus.cargo.container.installer.ZipURLInstaller.download()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中org.codehaus.cargo.container.installer.ZipURLInstaller.download()方法的一些代码示例,展示了ZipURLInstaller.download()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipURLInstaller.download()方法的具体详情如下:
包路径:org.codehaus.cargo.container.installer.ZipURLInstaller
类名称:ZipURLInstaller
方法名:download

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();

相关文章