| java.lang.Object org.apache.ivy.core.resolve.ResolveEngine
Method Summary | |
public ArtifactDownloadReport | download(Artifact artifact, DownloadOptions options) Download an artifact to the cache. | public void | downloadArtifacts(ResolveReport report, Filter artifactFilter, DownloadOptions options) | public ResolvedModuleRevision | findModule(ModuleRevisionId id, ResolveOptions options) | public IvyNode[] | getDependencies(URL ivySource, ResolveOptions options) Resolve the dependencies of a module without downloading corresponding artifacts. | public IvyNode[] | getDependencies(ModuleDescriptor md, ResolveOptions options, ResolveReport report) Resolve the dependencies of a module without downloading corresponding artifacts. | public DependencyResolver | getDictatorResolver() | public EventManager | getEventManager() | public ResolveEngineSettings | getSettings() | public SortEngine | getSortEngine() | public void | outputReport(ResolveReport report, ResolutionCacheManager cacheMgr, ResolveOptions options) | public ResolveReport | resolve(File ivySource) | public ResolveReport | resolve(URL ivySource) | public ResolveReport | resolve(ModuleRevisionId mrid, ResolveOptions options, boolean changing) Resolves the module identified by the given mrid with its dependencies if transitive is set
to true. | public ResolveReport | resolve(URL ivySource, ResolveOptions options) Resolve dependencies of a module described by an ivy file. | public ResolveReport | resolve(ModuleDescriptor md, ResolveOptions options) Resolve dependencies of a module described by a module descriptor. | public void | setDictatorResolver(DependencyResolver dictatorResolver) Sets a dictator resolver, which is used in place of regular dependency resolver for
subsequent dependency resolution by this engine. |
ResolveEngine | public ResolveEngine(ResolveEngineSettings settings, EventManager eventManager, SortEngine sortEngine)(Code) | | Constructs a ResolveEngine.
Parameters: settings - the settings to use to configure the engine. Must not be null. Parameters: eventManager - the event manager to use to send events about the resolution process. Must not benull. Parameters: sortEngine - the sort engine to use to sort modules before producing the dependency resolutionreport. Must not be null. |
download | public ArtifactDownloadReport download(Artifact artifact, DownloadOptions options)(Code) | | Download an artifact to the cache. Not used internally, useful especially for IDE plugins
needing to download artifact one by one (for source or javadoc artifact, for instance).
Downloaded artifact file can be accessed using
ArtifactDownloadReport.getLocalFile .
It is possible to track the progression of the download using classical ivy progress
monitoring feature (see addTransferListener).
Parameters: artifact - the artifact to download a report concerning the download |
getDependencies | public IvyNode[] getDependencies(URL ivySource, ResolveOptions options) throws ParseException, IOException(Code) | | Resolve the dependencies of a module without downloading corresponding artifacts. The module
to resolve is given by its ivy file URL. This method requires appropriate configuration of
the ivy instance, especially resolvers.
Parameters: ivySource - url of the ivy file to use for dependency resolving Parameters: confs - an array of configuration names to resolve - must not be null nor empty Parameters: getCache - the cache to use - default cache is used if null Parameters: date - the date to which resolution must be done - may be null an array of the resolved dependencies throws: ParseException - if a parsing problem occured in the ivy file throws: IOException - if an IO problem was raised during ivy file parsing |
getDependencies | public IvyNode[] getDependencies(ModuleDescriptor md, ResolveOptions options, ResolveReport report)(Code) | | Resolve the dependencies of a module without downloading corresponding artifacts. The module
to resolve is given by its module descriptor.This method requires appropriate configuration
of the ivy instance, especially resolvers.
Parameters: md - the descriptor of the module for which we want to get dependencies - must not benull Parameters: options - the resolve options to use to resolve the dependencies Parameters: report - a resolve report to fill during resolution - may be null an array of the resolved Dependencies |
getDictatorResolver | public DependencyResolver getDictatorResolver()(Code) | | Returns the currently configured dictator resolver, which when non null is used in place of
any specified resolver in the
IvySettings the currently configured dictator resolver, may be null. |
setDictatorResolver | public void setDictatorResolver(DependencyResolver dictatorResolver)(Code) | | Sets a dictator resolver, which is used in place of regular dependency resolver for
subsequent dependency resolution by this engine.
Parameters: dictatorResolver - the dictator resolver to use in this engine, null if regular settings should used |
|
|