com.atlassian.maven.plugins.testharness
Class ProcessSafeZipUrlInstaller
java.lang.Object
org.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.container.installer.ZipURLInstaller
com.atlassian.maven.plugins.testharness.ProcessSafeZipUrlInstaller
- All Implemented Interfaces:
- org.codehaus.cargo.container.installer.Installer, org.codehaus.cargo.util.log.Loggable
public class ProcessSafeZipUrlInstaller
- extends org.codehaus.cargo.container.installer.ZipURLInstaller
|
Constructor Summary |
ProcessSafeZipUrlInstaller(java.net.URL remoteLocation,
java.io.File downloadDirectory,
java.io.File deployDirectory)
A custom ZipUrlnstaller that is process safe --- multiple builds/processes can use it and it won't
screw up the local repository. |
| Methods inherited from class org.codehaus.cargo.container.installer.ZipURLInstaller |
download, getFileHandler, getInstallDirName, getSourceFileName, registerInstallation, setAntTaskFactory, setFileHandler, setInstallDir, setProxy |
| 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 |
ProcessSafeZipUrlInstaller
public ProcessSafeZipUrlInstaller(java.net.URL remoteLocation,
java.io.File downloadDirectory,
java.io.File deployDirectory)
- A custom ZipUrlnstaller that is process safe --- multiple builds/processes can use it and it won't
screw up the local repository.
- Parameters:
remoteLocation - The URL to the zip file.downloadDirectory - Where the zip file will be downloaded to.deployDirectory - Where the zip file will be unpacked to.
getDestinationDir
protected java.lang.String getDestinationDir()
- Overrides:
getDestinationDir in class org.codehaus.cargo.container.installer.ZipURLInstaller
isAlreadyInstalled
public boolean isAlreadyInstalled()
- Checks whether the zip file has been downloaded to the local repository.
- Overrides:
isAlreadyInstalled in class org.codehaus.cargo.container.installer.ZipURLInstaller
- Returns:
- true if already downloaded; false otherwise.
install
public void install()
- Specified by:
install in interface org.codehaus.cargo.container.installer.Installer- Overrides:
install in class org.codehaus.cargo.container.installer.ZipURLInstaller
getHome
public java.lang.String getHome()
-
- Specified by:
getHome in interface org.codehaus.cargo.container.installer.Installer- Overrides:
getHome in class org.codehaus.cargo.container.installer.ZipURLInstaller
- Returns:
Copyright © 2010 Atlassian Pty Ltd. All Rights Reserved.