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, waitgetSourceNameprotected 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 ArtifactDependencycleanDestinationFolder - true to clean destination directory@NotNull public abstract java.lang.String getSourceBuildTypeId()
getSourceBuildTypeId in interface ArtifactDependency@NotNull public abstract java.lang.String getSourceExternalId()
ArtifactDependencygetSourceExternalId in interface ArtifactDependency@NotNull public java.lang.String getSourcePaths()
getSourcePaths in interface ArtifactDependencypublic boolean isCleanDestinationFolder()
isCleanDestinationFolder in interface ArtifactDependency@NotNull public RevisionRule getRevisionRule()
ArtifactDependencygetRevisionRule in interface ArtifactDependencypublic java.lang.String toString()
toString in class java.lang.Objectpublic abstract void setSourceBuildTypeId(@NotNull
java.lang.String sourceBuildTypeInternalId)
setSourceBuildTypeId in interface ArtifactDependencysourceBuildTypeInternalId - new source build configuration idpublic void setRevisionRule(@NotNull
RevisionRule revisionRule)
setRevisionRule in interface ArtifactDependencyrevisionRule - new revision rulepublic void setSourcePaths(@NotNull
java.lang.String paths)
ArtifactDependencysetSourcePaths in interface ArtifactDependencypaths - pathspublic void replaceReferences(@NotNull
ValueResolver resolver)
ArtifactDependencyreplaceReferences in interface ArtifactDependencyresolver - replacement mappublic java.util.List<java.lang.String> getReferences()
ArtifactDependencygetReferences in interface ArtifactDependencypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean isSimilarTo(ArtifactDependency dep)
ArtifactDependencyisSimilarTo in interface ArtifactDependencydep - Another artifact dependencypublic int hashCode()
hashCode in class java.lang.Object@NotNull public java.lang.String getId()
ArtifactDependencygetId in interface ArtifactDependency