|
|||||||||
| 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
org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver
org.apache.ivy.plugins.resolver.RepositoryResolver
org.apache.ivy.plugins.resolver.URLResolver
org.apache.ivy.plugins.resolver.IBiblioResolver
public class IBiblioResolver
IBiblioResolver is a resolver which can be used to resolve dependencies found in the ibiblio maven repository, or similar repositories.
For more flexibility with url and patterns, see
URLResolver.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_M2_ROOT
|
static java.lang.String |
DEFAULT_PATTERN
|
static java.lang.String |
DEFAULT_ROOT
|
| Fields inherited from class org.apache.ivy.plugins.resolver.BasicResolver |
|---|
DATE_FORMAT, DESCRIPTOR_OPTIONAL, DESCRIPTOR_REQUIRED |
| Constructor Summary | |
|---|---|
IBiblioResolver()
|
|
| Method Summary | |
|---|---|
DownloadReport |
download(Artifact[] artifacts,
DownloadOptions options)
Download artifacts with specified DownloadOptions. |
void |
dumpSettings()
|
void |
ensureConfigured(ResolverSettings settings)
|
boolean |
exists(Artifact artifact)
Returns true if the given artifact can be located by this resolver and
actually exist. |
protected ResolvedResource |
findArtifactRef(Artifact artifact,
java.util.Date date)
|
ResolvedResource |
findIvyFileRef(DependencyDescriptor dd,
ResolveData data)
Finds the module descriptor for the specified DependencyDescriptor. |
protected void |
findTokenValues(java.util.Collection names,
java.util.List patterns,
java.util.Map tokenValues,
java.lang.String token)
|
java.util.List |
getArtifactPatterns()
|
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 java.lang.String |
getModuleDescriptorExtension()
|
java.lang.String |
getPattern()
|
java.lang.String |
getRoot()
|
java.lang.String |
getTypeName()
|
boolean |
isUseMavenMetadata()
|
boolean |
isUsepoms()
|
ModuleEntry[] |
listModules(OrganisationEntry org)
|
OrganisationEntry[] |
listOrganisations()
|
protected ResolvedResource[] |
listResources(Repository repository,
ModuleRevisionId mrid,
java.lang.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. |
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 java.lang.String[] |
listTokenValues(java.lang.String pattern,
java.lang.String token)
|
ArtifactOrigin |
locate(Artifact artifact)
Default implementation actually download the artifact Subclasses should overwrite this to avoid the download |
void |
publish(Artifact artifact,
java.io.File src)
|
void |
setM2compatible(boolean m2compatible)
|
void |
setPattern(java.lang.String pattern)
|
void |
setRoot(java.lang.String root)
Sets the root of the maven like repository. |
void |
setUseMavenMetadata(boolean useMavenMetadata)
|
void |
setUsepoms(boolean usepoms)
|
| Methods inherited from class org.apache.ivy.plugins.resolver.RepositoryResolver |
|---|
exist, findResourceUsingPattern, get, getDestination, getRepository, getResource, isAlwaysCheckExactRevision, publish, put, putChecksum, putSignature, setAlwaysCheckExactRevision, setName, setRepository, setSettings, setSigner |
| Methods inherited from class org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver |
|---|
addArtifactPattern, addConfiguredArtifact, addConfiguredIvy, addIvyPattern, convertM2IdForResourceSearch, convertM2OrganizationForResourceSearch, convertM2TokenValuesForResourceSearch, filterNames, findArtifactNames, findIvyNames, findNames, findResource, findResourceUsingPatterns, getIvyPatterns, isM2compatible, listTokenValues, setArtifactPatterns, setIvyPatterns |
| Methods inherited from class org.apache.ivy.plugins.resolver.BasicResolver |
|---|
acceptLatest, clearArtifactAttempts, clearIvyAttempts, download, findFirstArtifactRef, getAndCheck, getArtifactRef, getChecksumAlgorithms, getDefaultRMDParser, getPublicationDate, getRMDParser, getWorkspaceName, isAllownomd, isCheckconsistency, isEnvDependent, isForce, logArtifactAttempt, logAttempt, logIvyAttempt, parse, reportFailure, reportFailure, setAllownomd, setCheckconsistency, setChecksums, setDescriptor, setEnvDependent, setForce, setWorkspaceName, shouldReturnResolvedModule, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_PATTERN
public static final java.lang.String DEFAULT_ROOT
public static final java.lang.String DEFAULT_M2_ROOT
| Constructor Detail |
|---|
public IBiblioResolver()
| Method Detail |
|---|
public ResolvedResource findIvyFileRef(DependencyDescriptor dd,
ResolveData data)
DependencyResolver
findIvyFileRef in interface DependencyResolverfindIvyFileRef in class AbstractPatternsBasedResolverdd - the dependency descriptordata - the resolve data
protected ResolvedResource findArtifactRef(Artifact artifact,
java.util.Date date)
findArtifactRef in class AbstractPatternsBasedResolverpublic void setM2compatible(boolean m2compatible)
setM2compatible in class AbstractPatternsBasedResolverpublic void ensureConfigured(ResolverSettings settings)
protected java.lang.String getModuleDescriptorExtension()
getModuleDescriptorExtension in class AbstractPatternsBasedResolverpublic java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
public java.lang.String getRoot()
public void setRoot(java.lang.String root)
root - the root of the maven like repository
java.lang.IllegalArgumentException - if root does not start with "http://"
public void publish(Artifact artifact,
java.io.File src)
public java.lang.String[] listTokenValues(java.lang.String token,
java.util.Map otherTokenValues)
DependencyResolver
Note that listing does not take into account namespaces, and return raw
information without any namespace transformation. The caller is responsible for calling
namespace transformation with the Namespace returned by DependencyResolver.getNamespace().
listTokenValues in interface DependencyResolverlistTokenValues in class BasicResolver
protected java.lang.String[] listTokenValues(java.lang.String pattern,
java.lang.String token)
listTokenValues in class RepositoryResolverpublic OrganisationEntry[] listOrganisations()
listOrganisations in interface DependencyResolverlistOrganisations in class BasicResolverpublic ModuleEntry[] listModules(OrganisationEntry org)
listModules in interface DependencyResolverlistModules in class BasicResolverpublic RevisionEntry[] listRevisions(ModuleEntry mod)
listRevisions in interface DependencyResolverlistRevisions in class BasicResolver
protected ResolvedResource[] listResources(Repository repository,
ModuleRevisionId mrid,
java.lang.String pattern,
Artifact artifact)
RepositoryResolver
listResources in class RepositoryResolverrepository - 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
protected void findTokenValues(java.util.Collection names,
java.util.List patterns,
java.util.Map tokenValues,
java.lang.String token)
findTokenValues in class RepositoryResolverpublic java.lang.String getTypeName()
getTypeName in class URLResolver
public ResolvedModuleRevision getDependency(DependencyDescriptor dd,
ResolveData data)
throws java.text.ParseException
DependencyResolver
getDependency in interface DependencyResolvergetDependency in class BasicResolverjava.text.ParseException
public DownloadReport download(Artifact[] artifacts,
DownloadOptions options)
DependencyResolverThe 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 an
ArtifactDownloadReport for each requested Artifact.
download in interface DependencyResolverdownload in class RepositoryResolverartifacts - an array of artifacts to download. Must not be null.options - options to apply for this download. Must not be null.
public boolean exists(Artifact artifact)
DependencyResolvertrue if the given artifact can be located by this resolver and
actually exist.
exists in interface DependencyResolverexists in class BasicResolverartifact - the artifact which should be tested.
true if the given artifact can be located by this resolver and
actually exist.public ArtifactOrigin locate(Artifact artifact)
AbstractResolver
locate in interface DependencyResolverlocate in class BasicResolverartifact - the artifact which should be located
null if it can't be located by this resolver
or doesn't exist.public java.util.List getArtifactPatterns()
getArtifactPatterns in class AbstractPatternsBasedResolverpublic boolean isUsepoms()
public void setUsepoms(boolean usepoms)
public boolean isUseMavenMetadata()
public void setUseMavenMetadata(boolean useMavenMetadata)
public void dumpSettings()
dumpSettings in interface DependencyResolverdumpSettings in class RepositoryResolver
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||