|
|||||||||
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.BasicResolver
public abstract class BasicResolver
Field Summary | |
---|---|
protected java.lang.String |
_workspaceName
|
static java.text.SimpleDateFormat |
DATE_FORMAT
|
Constructor Summary | |
---|---|
BasicResolver()
|
Method Summary | |
---|---|
protected boolean |
acceptLatest()
|
protected void |
clearArtifactAttempts()
|
protected void |
clearIvyAttempts()
|
DownloadReport |
download(Artifact[] artifacts,
DownloadOptions options)
|
boolean |
exists(Artifact artifact)
Default implementation actually download the artifact Subclasses should overwrite this to avoid the download |
protected abstract ResolvedResource |
findArtifactRef(Artifact artifact,
java.util.Date date)
|
protected ResolvedResource |
findFirstArtifactRef(ModuleDescriptor md,
DependencyDescriptor dd,
ResolveData data)
|
protected abstract ResolvedResource |
findIvyFileRef(DependencyDescriptor dd,
ResolveData data)
|
protected abstract java.util.Collection |
findNames(java.util.Map tokenValues,
java.lang.String token)
|
protected abstract long |
get(Resource resource,
java.io.File dest)
|
protected long |
getAndCheck(Resource resource,
java.io.File dest)
|
protected ResolvedResource |
getArtifactRef(Artifact artifact,
java.util.Date date)
|
java.lang.String[] |
getChecksumAlgorithms()
|
protected ResourceMDParser |
getDefaultRMDParser(ModuleId mid)
|
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 ##) |
protected long |
getPublicationDate(ModuleDescriptor md,
DependencyDescriptor dd,
ResolveData data)
|
protected ResourceMDParser |
getRMDParser(DependencyDescriptor dd,
ResolveData data)
|
java.lang.String |
getWorkspaceName()
|
boolean |
isAllownomd()
|
boolean |
isCheckconsistency()
|
boolean |
isCheckmodified()
True if this resolver should check lastmodified date to know if ivy files are up to date. |
boolean |
isEnvDependent()
|
ModuleEntry[] |
listModules(OrganisationEntry org)
|
OrganisationEntry[] |
listOrganisations()
|
RevisionEntry[] |
listRevisions(ModuleEntry mod)
|
java.lang.String[] |
listTokenValues(java.lang.String token,
java.util.Map otherTokenValues)
List all the values the given token can take if other tokens are set as described in the otherTokenValues map. |
protected void |
logArtifactAttempt(Artifact art,
java.lang.String attempt)
|
protected static void |
logAttempt(java.lang.String attempt)
|
protected void |
logIvyAttempt(java.lang.String attempt)
|
ResolvedModuleRevision |
parse(ResolvedResource ivyRef,
DependencyDescriptor dd,
ResolveData data)
|
void |
reportFailure()
Reports last resolve failure as Messages |
void |
reportFailure(Artifact art)
Reports last artifact download failure as Messages |
protected ResolvedModuleRevision |
searchedRmr(ResolvedModuleRevision rmr)
|
void |
setAllownomd(boolean b)
|
void |
setCheckconsistency(boolean checkConsitency)
|
void |
setCheckmodified(boolean check)
|
void |
setChecksums(java.lang.String checksums)
|
void |
setEnvDependent(boolean envDependent)
|
void |
setWorkspaceName(java.lang.String workspaceName)
|
java.lang.String |
toString()
|
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractResolver |
---|
checkInterrupted, doValidate, dumpSettings, findModuleInCache, fromSystem, fromSystem, getChangingMatcher, getChangingMatcherName, getChangingPattern, getLatest, getLatestStrategy, getName, getNamespace, getSettings, getSystemNode, getTypeName, hidePassword, isValidate, setChangingMatcher, setChangingPattern, setLatest, setLatestStrategy, setName, setNamespace, setSettings, setValidate, toSystem, toSystem, toSystem, toSystem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.ivy.plugins.resolver.DependencyResolver |
---|
publish |
Field Detail |
---|
public static final java.text.SimpleDateFormat DATE_FORMAT
protected java.lang.String _workspaceName
Constructor Detail |
---|
public BasicResolver()
Method Detail |
---|
public java.lang.String getWorkspaceName()
public void setWorkspaceName(java.lang.String workspaceName)
public boolean isEnvDependent()
public void setEnvDependent(boolean envDependent)
public boolean isCheckmodified()
public void setCheckmodified(boolean check)
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws java.text.ParseException
DependencyResolver
java.text.ParseException
public ResolvedModuleRevision parse(ResolvedResource ivyRef, DependencyDescriptor dd, ResolveData data) throws java.text.ParseException
java.text.ParseException
protected ResourceMDParser getRMDParser(DependencyDescriptor dd, ResolveData data)
protected ResourceMDParser getDefaultRMDParser(ModuleId mid)
protected void clearIvyAttempts()
protected ResolvedModuleRevision searchedRmr(ResolvedModuleRevision rmr)
protected void logIvyAttempt(java.lang.String attempt)
protected void logArtifactAttempt(Artifact art, java.lang.String attempt)
protected static void logAttempt(java.lang.String attempt)
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
protected boolean acceptLatest()
public DownloadReport download(Artifact[] artifacts, DownloadOptions options)
protected void clearArtifactAttempts()
public boolean exists(Artifact artifact)
AbstractResolver
exists
in interface DependencyResolver
exists
in class AbstractResolver
protected long getPublicationDate(ModuleDescriptor md, DependencyDescriptor dd, ResolveData data)
public java.lang.String toString()
toString
in class AbstractResolver
public java.lang.String[] listTokenValues(java.lang.String token, java.util.Map otherTokenValues)
DependencyResolver
listTokenValues
in interface DependencyResolver
listTokenValues
in class AbstractResolver
public OrganisationEntry[] listOrganisations()
listOrganisations
in interface DependencyResolver
listOrganisations
in class AbstractResolver
public ModuleEntry[] listModules(OrganisationEntry org)
listModules
in interface DependencyResolver
listModules
in class AbstractResolver
public RevisionEntry[] listRevisions(ModuleEntry mod)
listRevisions
in interface DependencyResolver
listRevisions
in class AbstractResolver
protected abstract java.util.Collection findNames(java.util.Map tokenValues, java.lang.String token)
protected abstract ResolvedResource findIvyFileRef(DependencyDescriptor dd, ResolveData data)
protected ResolvedResource findFirstArtifactRef(ModuleDescriptor md, DependencyDescriptor dd, ResolveData data)
protected long getAndCheck(Resource resource, java.io.File dest) throws java.io.IOException
java.io.IOException
protected ResolvedResource getArtifactRef(Artifact artifact, java.util.Date date)
protected abstract ResolvedResource findArtifactRef(Artifact artifact, java.util.Date date)
protected abstract long get(Resource resource, java.io.File dest) throws java.io.IOException
java.io.IOException
public boolean isCheckconsistency()
public void setCheckconsistency(boolean checkConsitency)
public boolean isAllownomd()
public void setAllownomd(boolean b)
public java.lang.String[] getChecksumAlgorithms()
public void setChecksums(java.lang.String checksums)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |