Package org.apache.ivy.plugins.resolver
Class CacheResolver
- java.lang.Object
-
- All Implemented Interfaces:
Validatable
,DependencyResolver
,HasLatestStrategy
@Deprecated public class CacheResolver extends FileSystemResolver
Deprecated.
-
-
Field Summary
-
Fields inherited from class org.apache.ivy.plugins.resolver.BasicResolver
DATE_FORMAT, DESCRIPTOR_OPTIONAL, DESCRIPTOR_REQUIRED
-
-
Constructor Summary
Constructors Constructor Description CacheResolver()
Deprecated.CacheResolver(ResolverSettings settings)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DownloadReport
download(Artifact[] artifacts, DownloadOptions options)
Deprecated.Download artifacts with specified DownloadOptions.void
dumpSettings()
Deprecated.boolean
exists(Artifact artifact)
Deprecated.Returnstrue
if the given artifact can be located by this resolver and actually exist.ResolvedModuleRevision
getDependency(DependencyDescriptor dd, ResolveData data)
Deprecated.Resolve a module by id, getting its module descriptor and resolving the revision if it's a latest one (i.e.java.lang.String
getTypeName()
Deprecated.ModuleEntry[]
listModules(OrganisationEntry org)
Deprecated.OrganisationEntry[]
listOrganisations()
Deprecated.RevisionEntry[]
listRevisions(ModuleEntry module)
Deprecated.ArtifactOrigin
locate(Artifact artifact)
Deprecated.Default implementation actually download the artifact Subclasses should overwrite this to avoid the downloadvoid
publish(Artifact artifact, java.io.File src, boolean overwrite)
Deprecated.-
Methods inherited from class org.apache.ivy.plugins.resolver.FileSystemResolver
abortPublishTransaction, addArtifactPattern, addConfiguredArtifact, addConfiguredIvy, addIvyPattern, beginPublishTransaction, commitPublishTransaction, filterNames, getDestination, getTransactional, isLocal, setLocal, setTransactional, supportTransaction
-
Methods inherited from class org.apache.ivy.plugins.resolver.RepositoryResolver
exist, findResourceUsingPattern, findTokenValues, get, getRepository, getResource, isAlwaysCheckExactRevision, listResources, listTokenValues, put, putChecksum, putSignature, setAlwaysCheckExactRevision, setName, setRepository, setSettings, setSigner
-
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver
convertM2CriteriaForResourceSearch, convertM2IdForResourceSearch, convertM2OrganizationForResourceSearch, convertM2ResourceSearchIdToNormal, convertM2TokenValuesForResourceSearch, findArtifactNames, findArtifactRef, findIvyFileRef, findIvyNames, findNames, findResource, findResourceUsingPatterns, getArtifactPatterns, getIvyPatterns, getModuleDescriptorExtension, isM2compatible, listTokenValues, setArtifactPatterns, setIvyPatterns, setM2compatible
-
Methods inherited from class org.apache.ivy.plugins.resolver.BasicResolver
acceptLatest, checkModuleDescriptorRevision, clearArtifactAttempts, clearIvyAttempts, doFindArtifactRef, download, findFirstArtifactRef, getAndCheck, getArtifactRef, getChecksumAlgorithms, getDefaultRMDParser, getPublicationDate, getRMDParser, getWorkspaceName, isAllownomd, isCheckconsistency, isEnvDependent, isForce, listTokenValues, logArtifactAttempt, logAttempt, logIvyAttempt, parse, reportFailure, reportFailure, setAllownomd, setCheckconsistency, setChecksums, setDescriptor, setEnvDependent, setForce, setWorkspaceName, shouldReturnResolvedModule, toString
-
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractResolver
checkInterrupted, checkLatest, 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 Detail
-
CacheResolver
public CacheResolver()
Deprecated.
-
CacheResolver
public CacheResolver(ResolverSettings settings)
Deprecated.
-
-
Method Detail
-
getDependency
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws java.text.ParseException
Deprecated.Description copied from interface:DependencyResolver
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 uniquely the revision of the module outside of the current environment, then the resolved revision must begin by ##)- Specified by:
getDependency
in interfaceDependencyResolver
- Overrides:
getDependency
in classBasicResolver
- Parameters:
dd
- DependencyDescriptordata
- ResolveData- Returns:
- ResolvedModuleRevision
- Throws:
java.text.ParseException
- if something goes wrong
-
download
public DownloadReport download(Artifact[] artifacts, DownloadOptions options)
Deprecated.Description copied from interface:DependencyResolver
Download 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 anArtifactDownloadReport
for each requested Artifact.- Specified by:
download
in interfaceDependencyResolver
- Overrides:
download
in classRepositoryResolver
- 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.
-
exists
public boolean exists(Artifact artifact)
Deprecated.Description copied from interface:DependencyResolver
Returnstrue
if the given artifact can be located by this resolver and actually exist.- Specified by:
exists
in interfaceDependencyResolver
- Overrides:
exists
in classBasicResolver
- Parameters:
artifact
- the artifact which should be tested.- Returns:
true
if the given artifact can be located by this resolver and actually exist.
-
locate
public ArtifactOrigin locate(Artifact artifact)
Deprecated.Description copied from class:AbstractResolver
Default implementation actually download the artifact Subclasses should overwrite this to avoid the download- Specified by:
locate
in interfaceDependencyResolver
- Overrides:
locate
in classBasicResolver
- Parameters:
artifact
- ArtifactOrigin- Returns:
- ArtifactOrigin
-
publish
public void publish(Artifact artifact, java.io.File src, boolean overwrite) throws java.io.IOException
Deprecated.- Specified by:
publish
in interfaceDependencyResolver
- Overrides:
publish
in classRepositoryResolver
- Throws:
java.io.IOException
-
listOrganisations
public OrganisationEntry[] listOrganisations()
Deprecated.- Specified by:
listOrganisations
in interfaceDependencyResolver
- Overrides:
listOrganisations
in classBasicResolver
-
listModules
public ModuleEntry[] listModules(OrganisationEntry org)
Deprecated.- Specified by:
listModules
in interfaceDependencyResolver
- Overrides:
listModules
in classBasicResolver
-
listRevisions
public RevisionEntry[] listRevisions(ModuleEntry module)
Deprecated.- Specified by:
listRevisions
in interfaceDependencyResolver
- Overrides:
listRevisions
in classBasicResolver
-
dumpSettings
public void dumpSettings()
Deprecated.- Specified by:
dumpSettings
in interfaceDependencyResolver
- Overrides:
dumpSettings
in classRepositoryResolver
-
getTypeName
public java.lang.String getTypeName()
Deprecated.- Overrides:
getTypeName
in classFileSystemResolver
-
-