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 isnull
IllegalArgumentException
- if targetDirectory isnull
-
-
Method Details
-
getSourceLocation
Description copied from interface:ILocalDeploymentDefinition
Get source location (file or folder).- Specified by:
getSourceLocation
in interfaceILocalDeploymentDefinition
- Returns:
- location (absolute or relative) (not
null
)
-
getTargetDirectory
Description copied from interface:ILocalDeploymentDefinition
Get 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:
getTargetDirectory
in interfaceILocalDeploymentDefinition
- Returns:
- relative
File
(notnull
)
-
isRecursive
public boolean isRecursive()Description copied from interface:ILocalDeploymentDefinition
Whether to copy folders recursively.- Specified by:
isRecursive
in interfaceILocalDeploymentDefinition
- Returns:
true
if subfolders should be copied too
-
equals
-
hashCode
public int hashCode() -
toString
-