public class ZipURLInstaller extends org.codehaus.cargo.util.log.LoggedObject implements Installer
Constructor and Description |
---|
ZipURLInstaller(URL remoteLocation) |
ZipURLInstaller(URL remoteLocation,
String installDir) |
Modifier and Type | Method and Description |
---|---|
protected void |
download()
Downloads the zip file containing the container files.
|
protected String |
getDestinationDir() |
org.codehaus.cargo.util.FileHandler |
getFileHandler() |
String |
getHome() |
protected String |
getInstallDirName() |
protected String |
getSourceFileName() |
void |
install()
Installs the container.
|
boolean |
isAlreadyInstalled() |
void |
registerInstallation()
Create timestamp file to register that the installation has been successful.
|
protected void |
setAntTaskFactory(org.codehaus.cargo.util.AntTaskFactory antTaskFactory)
Convenience method used for testing in isolation.
|
void |
setFileHandler(org.codehaus.cargo.util.FileHandler fileHandler) |
void |
setInstallDir(String installDir) |
void |
setProxy(Proxy proxy)
Sets proxy details.
|
public ZipURLInstaller(URL remoteLocation)
remoteLocation
- URL where the zipped container is locatedpublic void setInstallDir(String installDir)
installDir
- the destination directory where the zipped container install will be
downloaded and installed.protected void setAntTaskFactory(org.codehaus.cargo.util.AntTaskFactory antTaskFactory)
AntTaskFactory
that returns a custom test-made Ant task.antTaskFactory
- the test-provided AntTaskFactory
public org.codehaus.cargo.util.FileHandler getFileHandler()
public void setFileHandler(org.codehaus.cargo.util.FileHandler fileHandler)
fileHandler
- the file utility class to use for performing all file I/O.public void install()
Installer
install
in interface Installer
Installer.install()
public void registerInstallation()
public boolean isAlreadyInstalled()
public String getHome()
getHome
in interface Installer
Installer.getHome()
protected void download()
protected String getSourceFileName()
protected String getInstallDirName()
protected String getDestinationDir()
public void setProxy(Proxy proxy)
proxy
- the proxy configuration to setCopyright © 2004-2013 Codehaus. All Rights Reserved.