|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ivy.plugins.resolver.AbstractResolver
org.apache.ivy.plugins.resolver.ChainResolver
public class ChainResolver
Nested Class Summary | |
---|---|
static class |
ChainResolver.ResolvedModuleRevisionArtifactInfo
|
Constructor Summary | |
---|---|
ChainResolver()
|
Method Summary | |
---|---|
void |
abortPublishTransaction()
|
void |
add(DependencyResolver resolver)
|
void |
beginPublishTransaction(ModuleRevisionId module,
boolean overwrite)
|
void |
commitPublishTransaction()
|
DownloadReport |
download(Artifact[] artifacts,
DownloadOptions options)
|
void |
dumpSettings()
|
boolean |
exists(Artifact artifact)
Default implementation actually download the artifact Subclasses should overwrite this to avoid the download |
ResolvedResource |
findIvyFileRef(DependencyDescriptor dd,
ResolveData data)
Finds the module descriptor for the specified DependencyDescriptor. |
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. |
java.util.List |
getResolvers()
|
boolean |
isCheckmodified()
True if this resolver should check lastmodified date to know if ivy files are up to date. |
boolean |
isDual()
|
boolean |
isReturnFirst()
|
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 |
setCheckmodified(boolean check)
|
void |
setDual(boolean b)
|
void |
setReturnFirst(boolean returnFirst)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChainResolver()
Method Detail |
---|
public void add(DependencyResolver resolver)
public boolean isCheckmodified()
public void setCheckmodified(boolean check)
setCheckmodified
in class AbstractResolver
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws java.text.ParseException
DependencyResolver
java.text.ParseException
public ResolvedResource findIvyFileRef(DependencyDescriptor dd, ResolveData data)
DependencyResolver
dd
- the dependency descriptordata
- the resolve data
public void reportFailure()
DependencyResolver
reportFailure
in interface DependencyResolver
reportFailure
in class AbstractResolver
public void reportFailure(Artifact art)
DependencyResolver
reportFailure
in interface DependencyResolver
reportFailure
in class AbstractResolver
public DownloadReport download(Artifact[] artifacts, DownloadOptions options)
public java.util.List getResolvers()
public void publish(Artifact artifact, java.io.File src, boolean overwrite) throws java.io.IOException
java.io.IOException
public void abortPublishTransaction() throws java.io.IOException
abortPublishTransaction
in interface DependencyResolver
abortPublishTransaction
in class AbstractResolver
java.io.IOException
public void beginPublishTransaction(ModuleRevisionId module, boolean overwrite) throws java.io.IOException
beginPublishTransaction
in interface DependencyResolver
beginPublishTransaction
in class AbstractResolver
java.io.IOException
public void commitPublishTransaction() throws java.io.IOException
commitPublishTransaction
in interface DependencyResolver
commitPublishTransaction
in class AbstractResolver
java.io.IOException
public boolean isReturnFirst()
public void setReturnFirst(boolean returnFirst)
public void dumpSettings()
dumpSettings
in interface DependencyResolver
dumpSettings
in class AbstractResolver
public boolean exists(Artifact artifact)
AbstractResolver
exists
in interface DependencyResolver
exists
in class AbstractResolver
public void setDual(boolean b)
public boolean isDual()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |