public abstract class AbstractPatternsBasedResolver extends BasicResolver
DATE_FORMAT, DESCRIPTOR_OPTIONAL, DESCRIPTOR_REQUIRED| Constructor and Description |
|---|
AbstractPatternsBasedResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
addArtifactPattern(java.lang.String pattern) |
void |
addConfiguredArtifact(IvyPattern p) |
void |
addConfiguredIvy(IvyPattern p) |
void |
addIvyPattern(java.lang.String pattern)
example of pattern : ~/Workspace/[module]/[module].ivy.xml
|
protected ModuleRevisionId |
convertM2IdForResourceSearch(ModuleRevisionId mrid) |
protected java.lang.String |
convertM2OrganizationForResourceSearch(java.lang.String org) |
protected ModuleRevisionId |
convertM2ResourceSearchIdToNormal(ModuleRevisionId mrid) |
protected void |
convertM2TokenValuesForResourceSearch(java.util.Map tokenValues) |
void |
dumpSettings() |
protected abstract boolean |
exist(java.lang.String path) |
protected java.util.Collection |
findArtifactNames(java.util.Map tokenValues,
java.lang.String token) |
ResolvedResource |
findArtifactRef(Artifact artifact,
java.util.Date date) |
ResolvedResource |
findIvyFileRef(DependencyDescriptor dd,
ResolveData data)
Finds the module descriptor for the specified DependencyDescriptor.
|
protected java.util.Collection |
findIvyNames(java.util.Map tokenValues,
java.lang.String token) |
protected java.util.Collection |
findNames(java.util.Map tokenValues,
java.lang.String token) |
ResolvedResource |
findResource(ResolvedResource[] rress,
ResourceMDParser rmdparser,
ModuleRevisionId mrid,
java.util.Date date)
When the resolver has many choices, this function helps choosing one
|
protected abstract ResolvedResource |
findResourceUsingPattern(ModuleRevisionId mrid,
java.lang.String pattern,
Artifact artifact,
ResourceMDParser rmdparser,
java.util.Date date) |
protected ResolvedResource |
findResourceUsingPatterns(ModuleRevisionId moduleRevision,
java.util.List patternList,
Artifact artifact,
ResourceMDParser rmdparser,
java.util.Date date) |
protected void |
findTokenValues(java.util.Collection names,
java.util.List patterns,
java.util.Map tokenValues,
java.lang.String token) |
java.util.List |
getArtifactPatterns() |
java.util.List |
getIvyPatterns() |
protected java.lang.String |
getModuleDescriptorExtension() |
boolean |
isM2compatible() |
java.util.Map[] |
listTokenValues(java.lang.String[] tokens,
java.util.Map criteria)
Same as
DependencyResolver.listTokenValues(String, Map) but more generic. |
protected abstract java.lang.String[] |
listTokenValues(java.lang.String pattern,
java.lang.String token) |
protected void |
setArtifactPatterns(java.util.List patterns) |
protected void |
setIvyPatterns(java.util.List patterns) |
void |
setM2compatible(boolean compatible) |
acceptLatest, checkModuleDescriptorRevision, clearArtifactAttempts, clearIvyAttempts, doFindArtifactRef, download, download, exists, filterNames, findFirstArtifactRef, get, getAndCheck, getArtifactRef, getChecksumAlgorithms, getDefaultRMDParser, getDependency, getPublicationDate, getResource, getRMDParser, getWorkspaceName, isAllownomd, isCheckconsistency, isEnvDependent, isForce, listModules, listOrganisations, listRevisions, listTokenValues, locate, logArtifactAttempt, logAttempt, logIvyAttempt, parse, reportFailure, reportFailure, setAllownomd, setCheckconsistency, setChecksums, setDescriptor, setEnvDependent, setForce, setWorkspaceName, shouldReturnResolvedModule, toStringabortPublishTransaction, beginPublishTransaction, checkInterrupted, checkLatest, commitPublishTransaction, doValidate, findModuleInCache, findModuleInCache, fromSystem, fromSystem, getCacheDownloadOptions, getCacheOptions, getChangingMatcherName, getChangingPattern, getDownloadOptions, getEventManager, getLatest, getLatestStrategy, getName, getNamespace, getParserSettings, getRepositoryCacheManager, getSettings, getSystemNode, getTypeName, hidePassword, isAfter, isValidate, saveModuleRevisionIfNeeded, setCache, setChangingMatcher, setChangingPattern, setCheckmodified, setEventManager, setLatest, setLatestStrategy, setName, setNamespace, setRepositoryCacheManager, setSettings, setValidate, toSystem, toSystem, toSystem, toSystem, toSystem, toSystem, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublishpublic ResolvedResource findIvyFileRef(DependencyDescriptor dd, ResolveData data)
DependencyResolverdd - the dependency descriptordata - the resolve datapublic ResolvedResource findArtifactRef(Artifact artifact, java.util.Date date)
findArtifactRef in class BasicResolverpublic ResolvedResource findResource(ResolvedResource[] rress, ResourceMDParser rmdparser, ModuleRevisionId mrid, java.util.Date date)
BasicResolverfindResource in class BasicResolverrress - the list of resolved resource which the resolver found to fit the requirementrmdparser - the parser of module descriptormrid - the module being resolveddate - the current dateprotected ResolvedResource findResourceUsingPatterns(ModuleRevisionId moduleRevision, java.util.List patternList, Artifact artifact, ResourceMDParser rmdparser, java.util.Date date)
protected abstract ResolvedResource findResourceUsingPattern(ModuleRevisionId mrid, java.lang.String pattern, Artifact artifact, ResourceMDParser rmdparser, java.util.Date date)
protected java.util.Collection findNames(java.util.Map tokenValues,
java.lang.String token)
findNames in class BasicResolverprotected java.util.Collection findIvyNames(java.util.Map tokenValues,
java.lang.String token)
protected java.util.Collection findArtifactNames(java.util.Map tokenValues,
java.lang.String token)
public java.util.Map[] listTokenValues(java.lang.String[] tokens,
java.util.Map criteria)
DependencyResolverDependencyResolver.listTokenValues(String, Map) but more generic.listTokenValues in interface DependencyResolverlistTokenValues in class AbstractResolvertokens - the tokens of the querycriteria - the token which have valuesnullprotected java.lang.String getModuleDescriptorExtension()
protected abstract java.lang.String[] listTokenValues(java.lang.String pattern,
java.lang.String token)
protected abstract boolean exist(java.lang.String path)
protected void findTokenValues(java.util.Collection names,
java.util.List patterns,
java.util.Map tokenValues,
java.lang.String token)
public void addIvyPattern(java.lang.String pattern)
pattern - public void addArtifactPattern(java.lang.String pattern)
public java.util.List getIvyPatterns()
public java.util.List getArtifactPatterns()
protected void setIvyPatterns(java.util.List patterns)
protected void setArtifactPatterns(java.util.List patterns)
public void addConfiguredIvy(IvyPattern p)
public void addConfiguredArtifact(IvyPattern p)
public void dumpSettings()
dumpSettings in interface DependencyResolverdumpSettings in class AbstractResolverpublic boolean isM2compatible()
public void setM2compatible(boolean compatible)
protected ModuleRevisionId convertM2ResourceSearchIdToNormal(ModuleRevisionId mrid)
protected ModuleRevisionId convertM2IdForResourceSearch(ModuleRevisionId mrid)
protected java.lang.String convertM2OrganizationForResourceSearch(java.lang.String org)
protected void convertM2TokenValuesForResourceSearch(java.util.Map tokenValues)