Package jetbrains.buildServer.artifacts
Class BaseArtifactDependency
- java.lang.Object
-
- jetbrains.buildServer.artifacts.BaseArtifactDependency
-
- All Implemented Interfaces:
ArtifactDependency
- Direct Known Subclasses:
ArtifactDependencyInfo,SArtifactDependencyImpl
public abstract class BaseArtifactDependency extends Object implements ArtifactDependency
Base class for artifact dependency information.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseArtifactDependency(String id, String sourcePaths, RevisionRule revisionRule)Represents dependency on one or more artifacts of some build.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetId()Returns artifact dependency idList<String>getReferences()Returns references used in this dependency (in destination path, source paths or in the build number)RevisionRulegetRevisionRule()Returns revision rule for downloaded artifacts.abstract StringgetSourceBuildTypeId()Returns internal id of build configuration this artifact belongs toabstract StringgetSourceExternalId()Returns external id of source build configurationStringgetSourcePaths()Returns path to this artifact in the build of the source build configurationinthashCode()booleanisCleanDestinationFolder()Returns true if destination directory should be cleaned before artifacts downloadedbooleanisSimilarTo(ArtifactDependency dep)Checks if another artifact dependency object is equal to this, ignoring differences in ids (if any)voidreplaceReferences(ValueResolver resolver)Replaces references in this artifact dependency using the provided resolvervoidsetCleanDestinationFolder(boolean cleanDestinationFolder)Set to true if destination directory should be cleaned before artifacts processingvoidsetRevisionRule(RevisionRule revisionRule)Sets new revision rule to this artifact dependencyabstract voidsetSourceBuildTypeId(String sourceBuildTypeInternalId)Sets new source build configuration idvoidsetSourcePaths(String paths)Sets new source paths to this artifact dependencyStringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.artifacts.ArtifactDependency
getSourceName
-
-
-
-
Constructor Detail
-
BaseArtifactDependency
protected BaseArtifactDependency(@NotNull String id, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule)Represents dependency on one or more artifacts of some build.- Parameters:
id- artifact dependency idsourcePaths- paths to artifacts in source build configurationrevisionRule- rule by which to select build with artifacts
-
-
Method Detail
-
setCleanDestinationFolder
public void setCleanDestinationFolder(boolean cleanDestinationFolder)
Set to true if destination directory should be cleaned before artifacts processing- Specified by:
setCleanDestinationFolderin interfaceArtifactDependency- Parameters:
cleanDestinationFolder- true to clean destination directory
-
getSourceBuildTypeId
@NotNull public abstract String getSourceBuildTypeId()
Returns internal id of build configuration this artifact belongs to- Specified by:
getSourceBuildTypeIdin interfaceArtifactDependency- Returns:
- internal id of build configuration containing this artifact
-
getSourceExternalId
@NotNull public abstract String getSourceExternalId()
Description copied from interface:ArtifactDependencyReturns external id of source build configuration- Specified by:
getSourceExternalIdin interfaceArtifactDependency- Returns:
- build configuration external id
-
getSourcePaths
@NotNull public String getSourcePaths()
Returns path to this artifact in the build of the source build configuration- Specified by:
getSourcePathsin interfaceArtifactDependency- Returns:
- artifacts source paths.
-
isCleanDestinationFolder
public boolean isCleanDestinationFolder()
Returns true if destination directory should be cleaned before artifacts downloaded- Specified by:
isCleanDestinationFolderin interfaceArtifactDependency- Returns:
- if destination directory should be cleaned before artifacts downloaded.
-
getRevisionRule
@NotNull public RevisionRule getRevisionRule()
Description copied from interface:ArtifactDependencyReturns revision rule for downloaded artifacts. Revision rule identifies build from which artifacts should be downloaded.- Specified by:
getRevisionRulein interfaceArtifactDependency- Returns:
- revision rule
-
setSourceBuildTypeId
public abstract void setSourceBuildTypeId(@NotNull String sourceBuildTypeInternalId)Sets new source build configuration id- Specified by:
setSourceBuildTypeIdin interfaceArtifactDependency- Parameters:
sourceBuildTypeInternalId- new source build configuration id
-
setRevisionRule
public void setRevisionRule(@NotNull RevisionRule revisionRule)Sets new revision rule to this artifact dependency- Specified by:
setRevisionRulein interfaceArtifactDependency- Parameters:
revisionRule- new revision rule
-
setSourcePaths
public void setSourcePaths(@NotNull String paths)Description copied from interface:ArtifactDependencySets new source paths to this artifact dependency- Specified by:
setSourcePathsin interfaceArtifactDependency- Parameters:
paths- paths
-
replaceReferences
public void replaceReferences(@NotNull ValueResolver resolver)Description copied from interface:ArtifactDependencyReplaces references in this artifact dependency using the provided resolver- Specified by:
replaceReferencesin interfaceArtifactDependency- Parameters:
resolver- replacement map
-
getReferences
public List<String> getReferences()
Description copied from interface:ArtifactDependencyReturns references used in this dependency (in destination path, source paths or in the build number)- Specified by:
getReferencesin interfaceArtifactDependency- Returns:
- see above
-
isSimilarTo
public boolean isSimilarTo(ArtifactDependency dep)
Description copied from interface:ArtifactDependencyChecks if another artifact dependency object is equal to this, ignoring differences in ids (if any)- Specified by:
isSimilarToin interfaceArtifactDependency- Parameters:
dep- Another artifact dependency- Returns:
- true if artifact dependency objects are equal (ignoring ids)
-
getId
@NotNull public String getId()
Description copied from interface:ArtifactDependencyReturns artifact dependency id- Specified by:
getIdin interfaceArtifactDependency- Returns:
- id
-
-