|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.container.installer.ZipURLInstaller
public class ZipURLInstaller
Installs a zipped container file from a URL to a location on your local disk.
Constructor Summary | |
---|---|
ZipURLInstaller(java.net.URL remoteLocation)
|
|
ZipURLInstaller(java.net.URL remoteLocation,
java.lang.String installDir)
|
Method Summary | |
---|---|
protected void |
download()
Downloads the zip file containing the container files. |
protected java.lang.String |
getDestinationDir()
|
FileHandler |
getFileHandler()
|
java.lang.String |
getHome()
|
protected java.lang.String |
getInstallDirName()
|
protected java.lang.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(AntTaskFactory antTaskFactory)
Convenience method used for testing in isolation. |
void |
setFileHandler(FileHandler fileHandler)
|
void |
setInstallDir(java.lang.String installDir)
|
void |
setProxy(Proxy proxy)
Sets proxy details. |
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject |
---|
getLogger, setLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.cargo.util.log.Loggable |
---|
getLogger, setLogger |
Constructor Detail |
---|
public ZipURLInstaller(java.net.URL remoteLocation)
remoteLocation
- URL where the zipped container is locatedpublic ZipURLInstaller(java.net.URL remoteLocation, java.lang.String installDir)
remoteLocation
- URL where the zipped container is locatedinstallDir
- directory where we will unpack the zip container fileMethod Detail |
---|
public void setInstallDir(java.lang.String installDir)
installDir
- the destination directory where the zipped container install will be
downloaded and installed.protected void setAntTaskFactory(AntTaskFactory antTaskFactory)
AntTaskFactory
that returns a custom test-made Ant task.
antTaskFactory
- the test-provided AntTaskFactory
public FileHandler getFileHandler()
public void setFileHandler(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 java.lang.String getHome()
getHome
in interface Installer
Installer.getHome()
protected void download()
protected java.lang.String getSourceFileName()
protected java.lang.String getInstallDirName()
protected java.lang.String getDestinationDir()
public void setProxy(Proxy proxy)
proxy
- the proxy configuration to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |