Class FileDownloadableArtifact
- java.lang.Object
-
- jetbrains.buildServer.artifacts.impl.AbstractDownloadableArtifact
-
- jetbrains.buildServer.artifacts.impl.FileDownloadableArtifact
-
- All Implemented Interfaces:
DownloadableArtifact
- Direct Known Subclasses:
ArchiveBasedArtifact
public class FileDownloadableArtifact extends AbstractDownloadableArtifact
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.artifacts.impl.DownloadableArtifact
DownloadableArtifact.DownloadedArtifact
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.artifacts.impl.AbstractDownloadableArtifact
myArchiveHelper, myArtifactAccessor, myCollisionsDetector, myDep, myListener, myWorkingDir
-
-
Constructor Summary
Constructors Constructor Description FileDownloadableArtifact(ArtifactDependency dep, ArtifactAccessor artifactAccessor, jetbrains.buildServer.artifacts.impl.DependencyArchiveHelper archiveHelper, DependencyResolverListener listener, SingleDependencyProcessor.CollisionsDetector collisionsDetector, String artifactPath, List<File> files, Collection<String> targetPaths, File workingDir, ArtifactInfo artifactInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DownloadableArtifact.DownloadedArtifact
download()
perform downloading and resolving the artifactvoid
fireArtifactDownloaded()
File
getTargetFile()
-
Methods inherited from class jetbrains.buildServer.artifacts.impl.AbstractDownloadableArtifact
checkCollisionsInUnpackedTargetFiles, downloadArtifact, getArtifactInfo, getArtifactPath, relativizeCollision
-
-
-
-
Constructor Detail
-
FileDownloadableArtifact
public FileDownloadableArtifact(ArtifactDependency dep, ArtifactAccessor artifactAccessor, jetbrains.buildServer.artifacts.impl.DependencyArchiveHelper archiveHelper, DependencyResolverListener listener, SingleDependencyProcessor.CollisionsDetector collisionsDetector, String artifactPath, List<File> files, Collection<String> targetPaths, File workingDir, ArtifactInfo artifactInfo)
-
-
Method Detail
-
download
public DownloadableArtifact.DownloadedArtifact download() throws ResolvingFailedException
Description copied from interface:DownloadableArtifact
perform downloading and resolving the artifact- Returns:
- count of processed files
- Throws:
ResolvingFailedException
-
fireArtifactDownloaded
public void fireArtifactDownloaded()
-
getTargetFile
public File getTargetFile()
- Returns:
- file on agent where downloaded artifact will be stored, the file may not exist
-
-