本文整理了Java中org.codehaus.cargo.container.installer.ZipURLInstaller.setLogger()
方法的一些代码示例,展示了ZipURLInstaller.setLogger()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipURLInstaller.setLogger()
方法的具体详情如下:
包路径:org.codehaus.cargo.container.installer.ZipURLInstaller
类名称:ZipURLInstaller
方法名:setLogger
暂无
代码示例来源:origin: com.atlassian.cargo-test-runner/cargo-test-runner
/**
* Use the home dir if specified by the user or download the container distribution and
* installs it if an install URL has been specified. Also supports container not requiring a
* home dir (embedded containers).
* @param installURL
* @param installDir
*/
private void setUpHome(URL installURL, File installDir) {
if (installURL != null) {
ZipURLInstaller installer = new ZipURLInstaller(installURL, null, installDir.getAbsolutePath());
final SimpleLogger logger = new SimpleLogger();
logger.setLevel(LogLevel.INFO);
installer.setLogger(logger);
installer.install();
this.containerHome = new File(installer.getHome());
}
}
代码示例来源:origin: codehaus-cargo/cargo
installer.setLogger(getContainer().getLogger());
if (!installer.isAlreadyDownloaded())
代码示例来源:origin: org.codehaus.cargo/cargo-ant
installer.setLogger(getContainer().getLogger());
if (!installer.isAlreadyDownloaded())
代码示例来源:origin: org.codehaus.cargo/cargo-ant
/**
* Set up a home dir (possibly using a ZipURLInstaller).
*/
protected void setupHome()
{
if (getHome() != null)
{
((InstalledLocalContainer) getContainer()).setHome(getHome());
}
else if (getZipURLInstaller() != null)
{
ZipURLInstaller installer = getZipURLInstaller().createInstaller();
installer.setLogger(getContainer().getLogger());
installer.install();
((InstalledLocalContainer) getContainer()).setHome(installer.getHome());
}
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* Set up a home dir (possibly using a ZipURLInstaller).
*/
protected void setupHome()
{
if (getHome() != null)
{
((InstalledLocalContainer) getContainer()).setHome(getHome());
}
else if (getZipURLInstaller() != null)
{
ZipURLInstaller installer = getZipURLInstaller().createInstaller();
installer.setLogger(getContainer().getLogger());
installer.install();
((InstalledLocalContainer) getContainer()).setHome(installer.getHome());
}
}
代码示例来源:origin: codehaus-cargo/cargo
if (getLog() != null)
installer.setLogger(container.getLogger());
if (getLog() != null)
installer.setLogger(container.getLogger());
代码示例来源:origin: codehaus-cargo/cargo
/**
* Install container using {@link ZipURLInstaller}.
* @return Location in which the container has been installed.
*/
private String installContainer()
{
ZipURLInstaller installer = new ZipURLInstaller(getTestData().installURL,
getTestData().downloadDir, getTestData().extractDir);
installer.setLogger(getLogger());
// Set up proxy
if (getTestData().proxy != null)
{
Proxy userProxy = getTestData().proxy;
userProxy.setLogger(getLogger());
installer.setProxy(userProxy);
}
installer.install();
return installer.getHome();
}
}
内容来源于网络,如有侵权,请联系作者删除!