- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.codehaus.cargo.container.installer.ZipURLInstaller.getHome()
方法的一些代码示例,展示了ZipURLInstaller.getHome()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipURLInstaller.getHome()
方法的具体详情如下:
包路径:org.codehaus.cargo.container.installer.ZipURLInstaller
类名称:ZipURLInstaller
方法名:getHome
暂无
代码示例来源: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: com.atlassian.sdk/ap3-api
container.setHome(installer.getHome());
container.setSystemProperties(sysProps);
代码示例来源:origin: codehaus-cargo/cargo
/**
* Test {@link ZipURLInstaller#getHome()} when container not installed yet.
* @throws Exception If anything goes wrong.
*/
public void testGetHomeWhenContainerNotInstalled() throws Exception
{
this.installer.setExtractDir("ram:///tmp");
try
{
this.installer.getHome();
fail("Should have thrown a container exception here");
}
catch (ContainerException expected)
{
assertEquals("Failed to get container installation home as the container has not yet "
+ "been installed. Please call install() first.", expected.getMessage());
}
}
代码示例来源: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
tmpHome = installer.getHome();
tmpHome = installer.getHome();
代码示例来源:origin: codehaus-cargo/cargo
/**
* Test {@link ZipURLInstaller#getHome()} when container installed in two levels.
* @throws Exception If anything goes wrong.
*/
public void testGetHomeWhenContainerDistributionUnzipsInTwoLevels() throws Exception
{
this.fsManager.resolveFile("ram:///tmp/resin-3.0.18/resin-3.0.18/bin").createFolder();
this.fsManager.resolveFile("ram:///tmp/resin-3.0.18/resin-3.0.18/lib").createFolder();
this.fsManager.resolveFile("ram:///tmp/resin-3.0.18/resin-3.0.18/webapps").createFolder();
this.fsManager.resolveFile("ram:///tmp/resin-3.0.18/.cargo").createFile();
this.installer.setExtractDir("ram:///tmp");
assertEquals("ram:///tmp/resin-3.0.18/resin-3.0.18", this.installer.getHome());
}
}
代码示例来源: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();
}
}
本文整理了Java中org.codehaus.cargo.container.installer.ZipURLInstaller.download()方法的一些代码示例,展示了ZipURLInstal
本文整理了Java中org.codehaus.cargo.container.installer.ZipURLInstaller.getDownloadFile()方法的一些代码示例,展示了ZipUR
本文整理了Java中org.codehaus.cargo.container.installer.ZipURLInstaller.isAlreadyDownloaded()方法的一些代码示例,展示了Z
本文整理了Java中org.codehaus.cargo.container.installer.ZipURLInstaller.setLogger()方法的一些代码示例,展示了ZipURLInsta
本文整理了Java中org.codehaus.cargo.container.installer.ZipURLInstaller.setProxy()方法的一些代码示例,展示了ZipURLInstal
本文整理了Java中org.codehaus.cargo.container.installer.ZipURLInstaller.getHome()方法的一些代码示例,展示了ZipURLInstall
本文整理了Java中org.codehaus.cargo.container.installer.ZipURLInstaller.()方法的一些代码示例,展示了ZipURLInstaller.()的具
本文整理了Java中org.codehaus.cargo.container.installer.ZipURLInstaller.install()方法的一些代码示例,展示了ZipURLInstall
我是一名优秀的程序员,十分优秀!