|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ivy.core.resolve.ResolveEngine
public class ResolveEngine
Constructor Summary | |
---|---|
ResolveEngine(IvySettings settings,
EventManager eventManager,
SortEngine sortEngine)
|
Method Summary | |
---|---|
ArtifactDownloadReport |
download(Artifact artifact,
CacheManager cacheManager,
boolean useOrigin)
Download an artifact to the cache. |
void |
downloadArtifacts(ResolveReport report,
CacheManager cacheManager,
boolean useOrigin,
Filter artifactFilter)
|
ResolvedModuleRevision |
findModule(ModuleRevisionId id,
ResolveOptions options)
|
IvyNode[] |
getDependencies(ModuleDescriptor md,
ResolveOptions options,
ResolveReport report)
Resolve the dependencies of a module without downloading corresponding artifacts. |
IvyNode[] |
getDependencies(java.net.URL ivySource,
ResolveOptions options)
Resolve the dependencies of a module without downloading corresponding artifacts. |
DependencyResolver |
getDictatorResolver()
|
EventManager |
getEventManager()
|
IvySettings |
getSettings()
|
SortEngine |
getSortEngine()
|
void |
outputReport(ResolveReport report,
java.io.File cache)
|
ResolveReport |
resolve(java.io.File ivySource)
|
ResolveReport |
resolve(ModuleDescriptor md,
ResolveOptions options)
Resolve dependencies of a module described by a module descriptor Note: the method signature is way too long, we should use a class to store the settings of the resolve. |
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. |
ResolveReport |
resolve(java.net.URL ivySource)
|
ResolveReport |
resolve(java.net.URL ivySource,
ResolveOptions options)
Resolve dependencies of a module described by an ivy file. |
void |
setDictatorResolver(DependencyResolver dictatorResolver)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResolveEngine(IvySettings settings, EventManager eventManager, SortEngine sortEngine)
Method Detail |
---|
public DependencyResolver getDictatorResolver()
public void setDictatorResolver(DependencyResolver dictatorResolver)
public ResolveReport resolve(java.io.File ivySource) throws java.text.ParseException, java.io.IOException
java.text.ParseException
java.io.IOException
public ResolveReport resolve(java.net.URL ivySource) throws java.text.ParseException, java.io.IOException
java.text.ParseException
java.io.IOException
public ResolveReport resolve(ModuleRevisionId mrid, ResolveOptions options, boolean changing) throws java.text.ParseException, java.io.IOException
java.text.ParseException
java.io.IOException
public ResolveReport resolve(java.net.URL ivySource, ResolveOptions options) throws java.text.ParseException, java.io.IOException
java.text.ParseException
java.io.IOException
public ResolveReport resolve(ModuleDescriptor md, ResolveOptions options) throws java.text.ParseException, java.io.IOException, java.io.FileNotFoundException
java.text.ParseException
java.io.IOException
java.io.FileNotFoundException
public void outputReport(ResolveReport report, java.io.File cache)
public void downloadArtifacts(ResolveReport report, CacheManager cacheManager, boolean useOrigin, Filter artifactFilter)
public ArtifactDownloadReport download(Artifact artifact, CacheManager cacheManager, boolean useOrigin)
artifact
- the artifact to downloadcacheManager
- the cacheManager to use.
public IvyNode[] getDependencies(java.net.URL ivySource, ResolveOptions options) throws java.text.ParseException, java.io.IOException
ivySource
- url of the ivy file to use for dependency resolvingconfs
- an array of configuration names to resolve - must not be null nor emptycache
- the cache to use - default cache is used if nulldate
- the date to which resolution must be done - may be null
java.text.ParseException
- if a parsing problem occured in the ivy file
java.io.IOException
- if an IO problem was raised during ivy file parsingpublic IvyNode[] getDependencies(ModuleDescriptor md, ResolveOptions options, ResolveReport report)
md
- the descriptor of the module for which we want to get dependencies - must not be nulloptions
- the resolve options to use to resolve the dependenciesreport
- a resolve report to fill during resolution - may be null
public ResolvedModuleRevision findModule(ModuleRevisionId id, ResolveOptions options)
public EventManager getEventManager()
public IvySettings getSettings()
public SortEngine getSortEngine()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |