public interface ArtifactDependency
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
getSourceBuildTypeId()
Returns internal id of source build configuration
|
java.lang.String |
getSourceExternalId()
Returns external id of source build configuration
|
java.lang.String |
getSourceName()
Returns name of the source build configuration
|
java.lang.String |
getSourcePaths()
Returns paths to artifacts in source build configuration
|
boolean |
isCleanDestinationFolder()
Indicates whether destination folder should be cleaned before artifacts downloading
|
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
|
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
|
@NotNull java.lang.String getSourceBuildTypeId()
@NotNull java.lang.String getSourceExternalId()
@NotNull java.lang.String getSourceName()
@NotNull java.lang.String getSourcePaths()
boolean isCleanDestinationFolder()
@NotNull RevisionRule getRevisionRule()
void setCleanDestinationFolder(boolean cleanDestinationFolder)
cleanDestinationFolder
- true to clean destination directoryvoid setSourceBuildTypeId(@NotNull java.lang.String sourceBuildTypeInternalId)
sourceBuildTypeInternalId
- new source build configuration idvoid setRevisionRule(@NotNull RevisionRule revisionRule)
revisionRule
- new revision rulevoid setSourcePaths(@NotNull java.lang.String paths)
paths
- pathsvoid replaceReferences(@NotNull ValueResolver resolver)
resolver
- replacement map@NotNull java.lang.String getId()
boolean isSimilarTo(ArtifactDependency dep)
dep
- Another artifact dependencyjava.util.List<java.lang.String> getReferences()