Package com.polarion.alm.builder.spi
Class LocalDeploymentDefinition
java.lang.Object
com.polarion.alm.builder.spi.LocalDeploymentDefinition
- All Implemented Interfaces:
ILocalDeploymentDefinition,Serializable
public final class LocalDeploymentDefinition
extends Object
implements ILocalDeploymentDefinition, Serializable
ILocalDeploymentDefinition implementation.- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLocalDeploymentDefinition(ILocation sourceLocation, File targetDirectory, boolean recursive) Constructor. -
Method Summary
-
Constructor Details
-
LocalDeploymentDefinition
Constructor.- Parameters:
sourceLocation- source locationtargetDirectory- target directoryrecursive- recursivness flag- Throws:
IllegalArgumentException- if sourceLocation isnullIllegalArgumentException- if targetDirectory isnull
-
-
Method Details
-
getSourceLocation
Description copied from interface:ILocalDeploymentDefinitionGet source location (file or folder).- Specified by:
getSourceLocationin interfaceILocalDeploymentDefinition- Returns:
- location (absolute or relative) (not
null)
-
getTargetDirectory
Description copied from interface:ILocalDeploymentDefinitionGet target directory.If source location is folder, then its contents are copied inside this target directory. If it is file, then it is copied inside this target directory.
Returned file is not absolute.
- Specified by:
getTargetDirectoryin interfaceILocalDeploymentDefinition- Returns:
- relative
File(notnull)
-
isRecursive
public boolean isRecursive()Description copied from interface:ILocalDeploymentDefinitionWhether to copy folders recursively.- Specified by:
isRecursivein interfaceILocalDeploymentDefinition- Returns:
trueif subfolders should be copied too
-
equals
-
hashCode
public int hashCode() -
toString
-