public class ZipURLInstaller extends LoggedObject implements Installer
| Constructor and Description |
|---|
ZipURLInstaller(URL remoteLocation) |
ZipURLInstaller(URL remoteLocation,
String downloadDir,
String extractDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
download()
Downloads the zip file containing the container files.
|
String |
getDownloadDir() |
String |
getDownloadFile() |
String |
getExtractDir() |
FileHandler |
getFileHandler() |
String |
getHome() |
protected String |
getSourceFileName() |
void |
install()
Installs the container.
|
boolean |
isAlreadyDownloaded() |
boolean |
isAlreadyExtracted() |
void |
registerInstallation()
Create timestamp file to register that the installation has been successful.
|
protected void |
setAntTaskFactory(AntTaskFactory antTaskFactory)
Convenience method used for testing in isolation.
|
void |
setDownloadDir(String downloadDir) |
void |
setExtractDir(String extractDir) |
void |
setFileHandler(FileHandler fileHandler) |
void |
setProxy(Proxy proxy)
Sets proxy details.
|
getLogger, setLoggerpublic ZipURLInstaller(URL remoteLocation)
remoteLocation - URL where the zipped container is locatedpublic ZipURLInstaller(URL remoteLocation, String downloadDir, String extractDir)
remoteLocation - URL where the zipped container is locateddownloadDir - directory where the zipped container install will be downloaded.extractDir - directory where the zipped container install will be extracted.public void setDownloadDir(String downloadDir)
downloadDir - the destination directory where the zipped container install will be
downloaded.public void setExtractDir(String extractDir)
extractDir - the destination directory where the zipped container install will be
installed.public String getDownloadDir()
public String getDownloadFile()
public String getExtractDir()
protected void setAntTaskFactory(AntTaskFactory antTaskFactory)
AntTaskFactory that returns a custom test-made Ant task.antTaskFactory - the test-provided AntTaskFactorypublic FileHandler getFileHandler()
public void setFileHandler(FileHandler fileHandler)
fileHandler - the file utility class to use for performing all file I/O.public void install()
Installerinstall in interface InstallerInstaller.install()public void registerInstallation()
public boolean isAlreadyDownloaded()
public boolean isAlreadyExtracted()
public String getHome()
getHome in interface InstallerInstaller.getHome()public void download()
protected String getSourceFileName()
public void setProxy(Proxy proxy)
proxy - the proxy configuration to setCopyright © 2004-2013 Codehaus. All Rights Reserved.