Class RepositoryResolver
java.lang.Object
org.apache.ivy.plugins.resolver.AbstractResolver
org.apache.ivy.plugins.resolver.BasicResolver
org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver
org.apache.ivy.plugins.resolver.RepositoryResolver
- All Implemented Interfaces:
Validatable, DependencyResolver, HasLatestStrategy
- Direct Known Subclasses:
AbstractSshBasedResolver, FileSystemResolver, JarResolver, MirroredURLResolver, URLResolver, VfsResolver, VsftpResolver
-
Field Summary
Fields inherited from class BasicResolver
DATE_FORMAT, DESCRIPTOR_OPTIONAL, DESCRIPTOR_REQUIRED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondownload(Artifact[] artifacts, DownloadOptions options) Download artifacts with specified DownloadOptions.voidprotected booleanprotected ResolvedResourcefindResourceUsingPattern(ModuleRevisionId mrid, String pattern, Artifact artifact, ResourceMDParser rmdparser, Date date) protected voidfindTokenValues(Collection<String> names, List<String> patterns, Map<String, String> tokenValues, String token) protected longprotected StringgetDestination(String pattern, Artifact artifact, ModuleRevisionId mrid) protected ResourcegetResource(String source) booleanprotected ResolvedResource[]listResources(Repository repository, ModuleRevisionId mrid, String pattern, Artifact artifact) List all revisions as resolved resources for the given artifact in the given repository using the given pattern, and using the given mrid except its revision.protected String[]listTokenValues(String pattern, String token) voidprotected voidprotected voidputChecksum(Artifact artifact, File src, String dest, boolean overwrite, String algorithm) protected voidputSignature(Artifact artifact, File src, String dest, boolean overwrite) voidsetAlwaysCheckExactRevision(boolean alwaysCheckExactRevision) voidShould only be used by configuratorvoidsetRepository(Repository repository) voidsetSettings(ResolverSettings settings) voidMethods inherited from class AbstractPatternsBasedResolver
addArtifactPattern, addConfiguredArtifact, addConfiguredIvy, addIvyPattern, convertM2CriteriaForResourceSearch, convertM2IdForResourceSearch, convertM2OrganizationForResourceSearch, convertM2ResourceSearchIdToNormal, convertM2TokenValuesForResourceSearch, findArtifactNames, findArtifactRef, findIvyFileRef, findIvyNames, findNames, findResource, findResourceUsingPatterns, getArtifactPatterns, getIvyPatterns, getModuleDescriptorExtension, isM2compatible, listTokenValues, setArtifactPatterns, setIvyPatterns, setM2compatibleMethods inherited from class BasicResolver
acceptLatest, checkModuleDescriptorRevision, clearArtifactAttempts, clearIvyAttempts, doFindArtifactRef, download, exists, filterNames, findFirstArtifactRef, getAndCheck, getArtifactRef, getChecksumAlgorithms, getDefaultRMDParser, getDependency, getPublicationDate, 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, toStringMethods inherited from class AbstractResolver
abortPublishTransaction, beginPublishTransaction, checkInterrupted, checkLatest, commitPublishTransaction, doValidate, findModuleInCache, findModuleInCache, fromSystem, fromSystem, getCacheDownloadOptions, getCacheOptions, getChangingMatcherName, getChangingPattern, getDownloadOptions, getEventManager, getLatest, getLatestStrategy, getName, getNamespace, getParserSettings, getRepositoryCacheManager, getSettings, getSystemNode, getTimeoutConstraint, hidePassword, isAfter, isValidate, saveModuleRevisionIfNeeded, setCache, setChangingMatcher, setChangingPattern, setCheckmodified, setEventManager, setLatest, setLatestStrategy, setNamespace, setRepositoryCacheManager, setTimeoutConstraint, setValidate, toSystem, toSystem, toSystem, toSystem, toSystem, toSystem, validate
-
Constructor Details
-
RepositoryResolver
public RepositoryResolver()
-
-
Method Details
-
getRepository
-
setRepository
-
setName
Description copied from interface:DependencyResolverShould only be used by configurator- Specified by:
setNamein interfaceDependencyResolver- Overrides:
setNamein classAbstractResolver- Parameters:
name- the new name of the resolver
-
setSigner
-
findResourceUsingPattern
protected ResolvedResource findResourceUsingPattern(ModuleRevisionId mrid, String pattern, Artifact artifact, ResourceMDParser rmdparser, Date date) - Specified by:
findResourceUsingPatternin classAbstractPatternsBasedResolver
-
getResource
- Specified by:
getResourcein classBasicResolver- Throws:
IOException
-
listResources
protected ResolvedResource[] listResources(Repository repository, ModuleRevisionId mrid, String pattern, Artifact artifact) List all revisions as resolved resources for the given artifact in the given repository using the given pattern, and using the given mrid except its revision.- Parameters:
repository- the repository in which revisions should be locatedmrid- the module revision id to look for (except revision)pattern- the pattern to use to locate the revisionsartifact- the artifact to find- Returns:
- an array of ResolvedResource, all pointing to a different revision of the given Artifact.
-
get
- Specified by:
getin classBasicResolver- Throws:
IOException
-
publish
- Throws:
IOException
-
getDestination
-
put
- Throws:
IOException
-
putChecksum
protected void putChecksum(Artifact artifact, File src, String dest, boolean overwrite, String algorithm) throws IOException - Throws:
IOException
-
putSignature
protected void putSignature(Artifact artifact, File src, String dest, boolean overwrite) throws IOException - Throws:
IOException
-
download
Description copied from interface:DependencyResolverDownload artifacts with specified DownloadOptions.The resolver will always make a best effort, and do not stop when an artifact is not available. It rather continue to attempt to download other requested artifacts, and report what has been done in the returned DownloadReport.
The returned DownloadReport is never
null, and always contain anArtifactDownloadReportfor each requested Artifact.- Specified by:
downloadin interfaceDependencyResolver- Overrides:
downloadin classBasicResolver- Parameters:
artifacts- an array of artifacts to download. Must not benull.options- options to apply for this download. Must not benull.- Returns:
- a DownloadReport with details about each Artifact download.
-
findTokenValues
protected void findTokenValues(Collection<String> names, List<String> patterns, Map<String, String> tokenValues, String token) - Overrides:
findTokenValuesin classAbstractPatternsBasedResolver
-
listTokenValues
- Specified by:
listTokenValuesin classAbstractPatternsBasedResolver
-
exist
- Specified by:
existin classAbstractPatternsBasedResolver
-
getTypeName
- Overrides:
getTypeNamein classAbstractResolver
-
dumpSettings
public void dumpSettings()- Specified by:
dumpSettingsin interfaceDependencyResolver- Overrides:
dumpSettingsin classAbstractPatternsBasedResolver
-
setSettings
- Specified by:
setSettingsin interfaceDependencyResolver- Overrides:
setSettingsin classAbstractResolver
-
isAlwaysCheckExactRevision
public boolean isAlwaysCheckExactRevision() -
setAlwaysCheckExactRevision
public void setAlwaysCheckExactRevision(boolean alwaysCheckExactRevision)
-