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.DependencyArchiveHelpermyArchiveHelperprotected ArtifactAccessormyArtifactAccessorprotected SingleDependencyProcessor.CollisionsDetectormyCollisionsDetectorprotected ArtifactDependencymyDepprotected DependencyResolverListenermyListenerprotected FilemyWorkingDir
-
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 voidcheckCollisionsInUnpackedTargetFiles(String artifactSourcePath, List<File> targetFiles)protected voiddownloadArtifact()ArtifactInfogetArtifactInfo()StringgetArtifactPath()protected StringrelativizeCollision(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:
getArtifactPathin interfaceDownloadableArtifact- Returns:
- relative path of this artifact on server
-
downloadArtifact
protected void downloadArtifact() throws ResolvingFailedException- Throws:
ResolvingFailedException
-
getArtifactInfo
public ArtifactInfo getArtifactInfo()
- Specified by:
getArtifactInfoin interfaceDownloadableArtifact
-
-