Class AbstractDownloadableArtifact
- java.lang.Object
-
- jetbrains.buildServer.artifacts.impl.AbstractDownloadableArtifact
-
- All Implemented Interfaces:
DownloadableArtifact
- Direct Known Subclasses:
FileDownloadableArtifact
public abstract class AbstractDownloadableArtifact extends Object implements DownloadableArtifact
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.artifacts.impl.DownloadableArtifact
DownloadableArtifact.DownloadedArtifact
-
-
Field Summary
Fields Modifier and Type Field Description protected jetbrains.buildServer.artifacts.impl.DependencyArchiveHelper
myArchiveHelper
protected ArtifactAccessor
myArtifactAccessor
protected SingleDependencyProcessor.CollisionsDetector
myCollisionsDetector
protected ArtifactDependency
myDep
protected DependencyResolverListener
myListener
protected File
myWorkingDir
-
Constructor Summary
Constructors Constructor Description AbstractDownloadableArtifact(ArtifactDependency dep, ArtifactAccessor artifactAccessor, jetbrains.buildServer.artifacts.impl.DependencyArchiveHelper archiveHelper, DependencyResolverListener listener, SingleDependencyProcessor.CollisionsDetector collisionsDetector, String artifactPath, File workingDir, ArtifactInfo artifactInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkCollisionsInUnpackedTargetFiles(String artifactSourcePath, List<File> targetFiles)
protected void
downloadArtifact()
ArtifactInfo
getArtifactInfo()
String
getArtifactPath()
protected String
relativizeCollision(File destination)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.artifacts.impl.DownloadableArtifact
download, getTargetFile
-
-
-
-
Field Detail
-
myDep
protected final ArtifactDependency myDep
-
myArtifactAccessor
protected final ArtifactAccessor myArtifactAccessor
-
myArchiveHelper
protected final jetbrains.buildServer.artifacts.impl.DependencyArchiveHelper myArchiveHelper
-
myListener
protected final DependencyResolverListener myListener
-
myCollisionsDetector
protected final SingleDependencyProcessor.CollisionsDetector myCollisionsDetector
-
myWorkingDir
protected final File myWorkingDir
-
-
Constructor Detail
-
AbstractDownloadableArtifact
public AbstractDownloadableArtifact(ArtifactDependency dep, ArtifactAccessor artifactAccessor, jetbrains.buildServer.artifacts.impl.DependencyArchiveHelper archiveHelper, DependencyResolverListener listener, SingleDependencyProcessor.CollisionsDetector collisionsDetector, String artifactPath, File workingDir, ArtifactInfo artifactInfo)
-
-
Method Detail
-
getArtifactPath
public String getArtifactPath()
- Specified by:
getArtifactPath
in interfaceDownloadableArtifact
- Returns:
- relative path of this artifact on server
-
downloadArtifact
protected void downloadArtifact() throws ResolvingFailedException
- Throws:
ResolvingFailedException
-
getArtifactInfo
public ArtifactInfo getArtifactInfo()
- Specified by:
getArtifactInfo
in interfaceDownloadableArtifact
-
-