org.apache.ivy.plugins.resolver

Class IBiblioResolver

public class IBiblioResolver extends URLResolver

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 StringDEFAULT_M2_ROOT
static StringDEFAULT_PATTERN
static StringDEFAULT_ROOT
Constructor Summary
IBiblioResolver()
Method Summary
DownloadReportdownload(Artifact[] artifacts, DownloadOptions options)
voiddumpSettings()
voidensureConfigured(ResolverSettings settings)
booleanexists(Artifact artifact)
protected ResolvedResourcefindArtifactRef(Artifact artifact, Date date)
ResolvedResourcefindIvyFileRef(DependencyDescriptor dd, ResolveData data)
protected voidfindTokenValues(Collection names, List patterns, Map tokenValues, String token)
ListgetArtifactPatterns()
ResolvedModuleRevisiongetDependency(DependencyDescriptor dd, ResolveData data)
protected StringgetModuleDescriptorExtension()
StringgetPattern()
StringgetRoot()
StringgetTypeName()
booleanisUseMavenMetadata()
booleanisUsepoms()
ModuleEntry[]listModules(OrganisationEntry org)
OrganisationEntry[]listOrganisations()
protected ResolvedResource[]listResources(Repository repository, ModuleRevisionId mrid, String pattern, Artifact artifact)
RevisionEntry[]listRevisions(ModuleEntry mod)
String[]listTokenValues(String token, Map otherTokenValues)
protected String[]listTokenValues(String pattern, String token)
ArtifactOriginlocate(Artifact artifact)
voidpublish(Artifact artifact, File src)
voidsetM2compatible(boolean m2compatible)
voidsetPattern(String pattern)
voidsetRoot(String root)
Sets the root of the maven like repository.
voidsetUseMavenMetadata(boolean useMavenMetadata)
voidsetUsepoms(boolean usepoms)

Field Detail

DEFAULT_M2_ROOT

public static final String DEFAULT_M2_ROOT

DEFAULT_PATTERN

public static final String DEFAULT_PATTERN

DEFAULT_ROOT

public static final String DEFAULT_ROOT

Constructor Detail

IBiblioResolver

public IBiblioResolver()

Method Detail

download

public DownloadReport download(Artifact[] artifacts, DownloadOptions options)

dumpSettings

public void dumpSettings()

ensureConfigured

public void ensureConfigured(ResolverSettings settings)

exists

public boolean exists(Artifact artifact)

findArtifactRef

protected ResolvedResource findArtifactRef(Artifact artifact, Date date)

findIvyFileRef

public ResolvedResource findIvyFileRef(DependencyDescriptor dd, ResolveData data)

findTokenValues

protected void findTokenValues(Collection names, List patterns, Map tokenValues, String token)

getArtifactPatterns

public List getArtifactPatterns()

getDependency

public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data)

getModuleDescriptorExtension

protected String getModuleDescriptorExtension()

getPattern

public String getPattern()

getRoot

public String getRoot()

getTypeName

public String getTypeName()

isUseMavenMetadata

public boolean isUseMavenMetadata()

isUsepoms

public boolean isUsepoms()

listModules

public ModuleEntry[] listModules(OrganisationEntry org)

listOrganisations

public OrganisationEntry[] listOrganisations()

listResources

protected ResolvedResource[] listResources(Repository repository, ModuleRevisionId mrid, String pattern, Artifact artifact)

listRevisions

public RevisionEntry[] listRevisions(ModuleEntry mod)

listTokenValues

public String[] listTokenValues(String token, Map otherTokenValues)

listTokenValues

protected String[] listTokenValues(String pattern, String token)

locate

public ArtifactOrigin locate(Artifact artifact)

publish

public void publish(Artifact artifact, File src)

setM2compatible

public void setM2compatible(boolean m2compatible)

setPattern

public void setPattern(String pattern)

setRoot

public void setRoot(String root)
Sets the root of the maven like repository. The maven like repository is necessarily an http repository.

Parameters: root the root of the maven like repository

Throws: IllegalArgumentException if root does not start with "http://"

setUseMavenMetadata

public void setUseMavenMetadata(boolean useMavenMetadata)

setUsepoms

public void setUsepoms(boolean usepoms)