Package org.apache.ivy.ant
Class AntWorkspaceResolver.Resolver
- java.lang.Object
-
- org.apache.ivy.plugins.resolver.AbstractResolver
-
- org.apache.ivy.plugins.resolver.AbstractWorkspaceResolver
-
- org.apache.ivy.ant.AntWorkspaceResolver.Resolver
-
- All Implemented Interfaces:
Validatable
,DependencyResolver
,HasLatestStrategy
- Enclosing class:
- AntWorkspaceResolver
private class AntWorkspaceResolver.Resolver extends AbstractWorkspaceResolver
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<ModuleDescriptor,java.io.File>
md2IvyFile
-
Constructor Summary
Constructors Modifier Constructor Description private
Resolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<Artifact>
createWorkspaceArtifacts(ModuleDescriptor md)
DownloadReport
download(Artifact[] artifacts, DownloadOptions options)
Download artifacts with specified DownloadOptions.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.private java.util.Map<ModuleDescriptor,java.io.File>
getModuleDescriptors()
-
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractWorkspaceResolver
checkCandidate, createWorkspaceMd, findIvyFileRef, publish, setIgnoreBranch, setIgnoreVersion
-
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractResolver
abortPublishTransaction, beginPublishTransaction, checkInterrupted, checkLatest, commitPublishTransaction, doValidate, download, dumpSettings, exists, findModuleInCache, findModuleInCache, fromSystem, fromSystem, getCacheDownloadOptions, getCacheOptions, getChangingMatcherName, getChangingPattern, getDownloadOptions, getEventManager, getLatest, getLatestStrategy, getName, getNamespace, getParserSettings, getRepositoryCacheManager, getSettings, getSystemNode, getTimeoutConstraint, getTypeName, hidePassword, isAfter, isValidate, listModules, listOrganisations, listRevisions, listTokenValues, listTokenValues, locate, reportFailure, reportFailure, saveModuleRevisionIfNeeded, setCache, setChangingMatcher, setChangingPattern, setCheckmodified, setEventManager, setLatest, setLatestStrategy, setName, setNamespace, setRepositoryCacheManager, setSettings, setTimeoutConstraint, setValidate, toString, toSystem, toSystem, toSystem, toSystem, toSystem, toSystem, validate
-
-
-
-
Field Detail
-
md2IvyFile
private java.util.Map<ModuleDescriptor,java.io.File> md2IvyFile
-
-
Method Detail
-
getModuleDescriptors
private java.util.Map<ModuleDescriptor,java.io.File> getModuleDescriptors()
-
getDependency
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws java.text.ParseException
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 ##)- Parameters:
dd
- DependencyDescriptordata
- ResolveData- Returns:
- ResolvedModuleRevision
- Throws:
java.text.ParseException
- if something goes wrong
-
createWorkspaceArtifacts
protected java.util.List<Artifact> createWorkspaceArtifacts(ModuleDescriptor md)
- Specified by:
createWorkspaceArtifacts
in classAbstractWorkspaceResolver
-
download
public DownloadReport download(Artifact[] artifacts, DownloadOptions options)
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.- 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.
-
-