Package jetbrains.buildServer.artifacts
Interface DependencyResolver
-
- All Known Implementing Classes:
DependencyResolverImpl
public interface DependencyResolver
- Author:
- Pavel.Sher Date: 08.02.2007
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
addListener(DependencyResolverListener listener)
EventDispatcher<DependencyResolverListener>
getEventDispatcher()
void
interrupt()
Interrupt current resolution process.void
removeListener(DependencyResolverListener listener)
ResolutionErrors
resolve(String buildTypeId, File workingDir, List<ArtifactDependency> dependencies, DependencyResolverContext context)
Resolves artifact dependencies for specified build.default ResolutionErrors
resolveCache(String buildTypeId, File workingDir, List<ArtifactDependency> dependencies, DependencyResolverContext context)
Resolves build cache (as dependencies) for specified build.
-
-
-
Method Detail
-
resolve
@NotNull ResolutionErrors resolve(@NotNull String buildTypeId, @NotNull File workingDir, @NotNull List<ArtifactDependency> dependencies, @NotNull DependencyResolverContext context)
Resolves artifact dependencies for specified build. All build dependencies will be downloaded- Parameters:
buildTypeId
- (unused)workingDir
- directory where resolution is performeddependencies
- dependencies to resolvecontext
- all other information about artifacts source- Returns:
- a
ResolutionErrors
object which describes error occurred during the resolve process
-
resolveCache
@NotNull default ResolutionErrors resolveCache(@NotNull String buildTypeId, @NotNull File workingDir, @NotNull List<ArtifactDependency> dependencies, @NotNull DependencyResolverContext context) throws ResolvingFailedException
Resolves build cache (as dependencies) for specified build. All build dependencies will be downloaded- Parameters:
buildTypeId
- id of build configuration for which resolving is performedworkingDir
- directory where resolution is performeddependencies
- dependencies to resolvecontext
- all other information about artifacts source- Throws:
ResolvingFailedException
- if resolving failed
-
interrupt
void interrupt()
Interrupt current resolution process. Method implementation should be thread safe.
-
addListener
void addListener(DependencyResolverListener listener)
-
removeListener
void removeListener(DependencyResolverListener listener)
-
getEventDispatcher
EventDispatcher<DependencyResolverListener> getEventDispatcher()
-
-