|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.jayasoft.ivy.resolver.AbstractResolver
fr.jayasoft.ivy.resolver.DualResolver
DualResolver is used to resolve dependencies with one dependency revolver, called ivy resolver, and then download artifacts found in the resolved dependencies from a second dependency resolver, called artifact resolver. It is especially useful with resolvers using repository where there is a lot of artifact, but no ivy file, like the maven ibiblio repository. If no ivy file is found by the ivy resolver, the artifact resolver is used to check if there is artifact corresponding to the request (with default ivy file). For artifact download, however, only the artifact resolver is used. Exactly two resolvers should be added to this resolver for it to work properly. The first resolver added if the ivy resolver, the second is the artifact one.
| Constructor Summary | |
DualResolver()
|
|
| Method Summary | |
void |
add(DependencyResolver resolver)
|
DownloadReport |
download(Artifact[] artifacts,
Ivy ivy,
java.io.File cache)
|
void |
dumpConfig()
|
boolean |
exists(Artifact artifact)
Default implementation actually download the artifact Subclasses should overwrite this to avoid the download |
DependencyResolver |
getArtifactResolver()
|
ResolvedModuleRevision |
getDependency(DependencyDescriptor dd,
ResolveData data)
Resolve a module by id, getting its module descriptor and resolving the revision if it's a latest one (i.e. a revision uniquely identifying the revision of a module in the current environment - If this revision is not able to identify uniquelely the revision of the module outside of the current environment, then the resolved revision must begin by ##) |
DependencyResolver |
getIvyResolver()
|
void |
publish(Artifact artifact,
java.io.File src,
boolean overwrite)
|
void |
reportFailure()
Reports last resolve failure as Messages |
void |
reportFailure(Artifact art)
Reports last artifact download failure as Messages |
void |
setArtifactResolver(DependencyResolver artifactResolver)
|
void |
setIvyResolver(DependencyResolver ivyResolver)
|
| Methods inherited from class fr.jayasoft.ivy.resolver.AbstractResolver |
doValidate, findModuleInCache, fromSystem, fromSystem, getIvy, getLatest, getLatestStrategy, getName, getNamespace, getSystemNode, getTypeName, isValidate, listModules, listOrganisations, listRevisions, setIvy, setLatest, setLatestStrategy, setName, setNamespace, setValidate, toString, toSystem, toSystem, toSystem, toSystem |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DualResolver()
| Method Detail |
public void add(DependencyResolver resolver)
public ResolvedModuleRevision getDependency(DependencyDescriptor dd,
ResolveData data)
throws java.text.ParseException
DependencyResolver
java.text.ParseExceptionpublic void reportFailure()
DependencyResolver
reportFailure in interface DependencyResolverreportFailure in class AbstractResolverpublic void reportFailure(Artifact art)
DependencyResolver
reportFailure in interface DependencyResolverreportFailure in class AbstractResolver
public DownloadReport download(Artifact[] artifacts,
Ivy ivy,
java.io.File cache)
public DependencyResolver getArtifactResolver()
public void setArtifactResolver(DependencyResolver artifactResolver)
public DependencyResolver getIvyResolver()
public void setIvyResolver(DependencyResolver ivyResolver)
public void publish(Artifact artifact,
java.io.File src,
boolean overwrite)
throws java.io.IOException
java.io.IOExceptionpublic void dumpConfig()
dumpConfig in interface DependencyResolverdumpConfig in class AbstractResolverpublic boolean exists(Artifact artifact)
AbstractResolver
exists in interface DependencyResolverexists in class AbstractResolver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||