public abstract class BaseArtifactDependency extends java.lang.Object implements ArtifactDependency
Modifier | Constructor and Description |
---|---|
protected |
BaseArtifactDependency(java.lang.String id,
java.lang.String sourcePaths,
RevisionRule revisionRule)
Represents dependency on one or more artifacts of some build.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getId()
Returns artifact dependency id
|
java.util.List<java.lang.String> |
getReferences()
Returns references used in this dependency (in destination path, source paths or in the build number)
|
RevisionRule |
getRevisionRule()
Returns revision rule for downloaded artifacts.
|
abstract java.lang.String |
getSourceBuildTypeId()
Returns internal id of build configuration this artifact belongs to
|
abstract java.lang.String |
getSourceExternalId()
Returns external id of source build configuration
|
java.lang.String |
getSourcePaths()
Returns path to this artifact in the build of the source build configuration
|
int |
hashCode() |
boolean |
isCleanDestinationFolder()
Returns true if destination directory should be cleaned before artifacts downloaded
|
boolean |
isSimilarTo(ArtifactDependency dep)
Checks if another artifact dependency object is equal to this, ignoring differences in ids (if any)
|
void |
replaceReferences(ValueResolver resolver)
Replaces references in this artifact dependency using the provided resolver
|
void |
setCleanDestinationFolder(boolean cleanDestinationFolder)
Set to true if destination directory should be cleaned before artifacts processing
|
void |
setRevisionRule(RevisionRule revisionRule)
Sets new revision rule to this artifact dependency
|
abstract void |
setSourceBuildTypeId(java.lang.String sourceBuildTypeInternalId)
Sets new source build configuration id
|
void |
setSourcePaths(java.lang.String paths)
Sets new source paths to this artifact dependency
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getSourceName
protected BaseArtifactDependency(@NotNull java.lang.String id, @NotNull java.lang.String sourcePaths, @NotNull RevisionRule revisionRule)
id
- artifact dependency idsourcePaths
- paths to artifacts in source build configurationrevisionRule
- rule by which to select build with artifactspublic void setCleanDestinationFolder(boolean cleanDestinationFolder)
setCleanDestinationFolder
in interface ArtifactDependency
cleanDestinationFolder
- true to clean destination directory@NotNull public abstract java.lang.String getSourceBuildTypeId()
getSourceBuildTypeId
in interface ArtifactDependency
@NotNull public abstract java.lang.String getSourceExternalId()
ArtifactDependency
getSourceExternalId
in interface ArtifactDependency
@NotNull public java.lang.String getSourcePaths()
getSourcePaths
in interface ArtifactDependency
public boolean isCleanDestinationFolder()
isCleanDestinationFolder
in interface ArtifactDependency
@NotNull public RevisionRule getRevisionRule()
ArtifactDependency
getRevisionRule
in interface ArtifactDependency
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void setSourceBuildTypeId(@NotNull java.lang.String sourceBuildTypeInternalId)
setSourceBuildTypeId
in interface ArtifactDependency
sourceBuildTypeInternalId
- new source build configuration idpublic void setRevisionRule(@NotNull RevisionRule revisionRule)
setRevisionRule
in interface ArtifactDependency
revisionRule
- new revision rulepublic void setSourcePaths(@NotNull java.lang.String paths)
ArtifactDependency
setSourcePaths
in interface ArtifactDependency
paths
- pathspublic void replaceReferences(@NotNull ValueResolver resolver)
ArtifactDependency
replaceReferences
in interface ArtifactDependency
resolver
- replacement mappublic java.util.List<java.lang.String> getReferences()
ArtifactDependency
getReferences
in interface ArtifactDependency
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean isSimilarTo(ArtifactDependency dep)
ArtifactDependency
isSimilarTo
in interface ArtifactDependency
dep
- Another artifact dependencypublic int hashCode()
hashCode
in class java.lang.Object
@NotNull public java.lang.String getId()
ArtifactDependency
getId
in interface ArtifactDependency