org.apache.ivy

Class Ivy14

public class Ivy14 extends Object

This class can be used for easy migration from Ivy 1.4 API.

Indeed, Ivy 2.0 API has changed substantially, so it can take time to migrate existing code using Ivy 1.4 API to the new API. Using this class it's really easy: replace your instance of Ivy by an instance of this class.

For instance, where you were doing:

 Ivy ivy = new Ivy();
 
do instead:
 Ivy14 ivy = new Ivy14();
 
And that should be enough in most cases!
Constructor Summary
Ivy14()
Ivy14(Ivy ivy)
Method Summary
booleancheck(URL ivyFile, String resolvername)
voidconfigure(File settingsFile)
voidconfigure(URL settingsURL)
voidconfigureDefault()
voiddeliver(ModuleRevisionId mrid, String revision, File cache, String destIvyPattern, String status, Date pubdate, PublishingDependencyRevisionResolver pdrResolver, boolean validate, boolean resolveDynamicRevisions)
voiddeliver(ModuleRevisionId mrid, String revision, File cache, String destIvyPattern, String status, Date pubdate, PublishingDependencyRevisionResolver pdrResolver, boolean validate)
MapdetermineArtifactsToCopy(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern, Filter artifactFilter)
MapdetermineArtifactsToCopy(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern)
ArtifactDownloadReportdownload(Artifact artifact, File cache, boolean useOrigin)
ResolvedModuleRevisionfindModule(ModuleRevisionId id)
IvyNode[]getDependencies(ModuleDescriptor md, String[] confs, File cache, Date date, ResolveReport report, boolean validate, boolean transitive)
IvyNode[]getDependencies(ModuleDescriptor md, String[] confs, File cache, Date date, ResolveReport report, boolean validate)
IvyNode[]getDependencies(URL ivySource, String[] confs, File cache, Date date, boolean validate)
StringgetVariable(String name)
ResolveReportinstall(ModuleRevisionId mrid, String from, String to, boolean transitive, boolean validate, boolean overwrite, Filter artifactFilter, File cache, String matcherName)
voidinterrupt()
voidinterrupt(Thread operatingThread)
booleanisInterrupted()
ModuleEntry[]listModuleEntries(OrganisationEntry org)
ModuleId[]listModules(ModuleId criteria, PatternMatcher matcher)
ModuleRevisionId[]listModules(ModuleRevisionId criteria, PatternMatcher matcher)
String[]listModules(String org)
OrganisationEntry[]listOrganisationEntries()
String[]listOrganisations()
RevisionEntry[]listRevisionEntries(ModuleEntry module)
String[]listRevisions(String org, String module)
String[]listTokenValues(String token, Map otherTokenValues)
Collectionpublish(ModuleDescriptor md, DependencyResolver resolver, Collection srcArtifactPattern, String srcIvyPattern, Artifact[] extraArtifacts, boolean overwrite, String conf)
Collectionpublish(ModuleRevisionId mrid, String pubrevision, File cache, Collection srcArtifactPattern, String resolverName, String srcIvyPattern, String status, Date pubdate, Artifact[] extraArtifacts, boolean validate, boolean overwrite, boolean update, String conf)
Collectionpublish(ModuleRevisionId mrid, String pubrevision, File cache, String srcArtifactPattern, String resolverName, String srcIvyPattern, boolean validate, boolean overwrite)
Collectionpublish(ModuleRevisionId mrid, String pubrevision, File cache, String srcArtifactPattern, String resolverName, String srcIvyPattern, boolean validate)
Collectionpublish(ModuleRevisionId mrid, String pubrevision, File cache, String srcArtifactPattern, String resolverName, String srcIvyPattern, String status, Date pubdate, Artifact[] extraArtifacts, boolean validate, boolean overwrite, boolean update, String conf)
ResolveReportresolve(File ivySource)
ResolveReportresolve(ModuleDescriptor md, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, boolean useOrigin, boolean download, boolean outputReport, Filter artifactFilter)
ResolveReportresolve(ModuleDescriptor md, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, boolean download, boolean outputReport, Filter artifactFilter)
ResolveReportresolve(ModuleDescriptor md, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, Filter artifactFilter)
ResolveReportresolve(ModuleDescriptor md, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, Filter artifactFilter)
ResolveReportresolve(ModuleRevisionId mrid, String[] confs, boolean transitive, boolean changing, File cache, Date date, boolean validate, boolean useCacheOnly, boolean useOrigin, Filter artifactFilter)
ResolveReportresolve(ModuleRevisionId mrid, String[] confs, boolean transitive, boolean changing, File cache, Date date, boolean validate, boolean useCacheOnly, Filter artifactFilter)
ResolveReportresolve(ModuleRevisionId mrid, String[] confs)
ResolveReportresolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, boolean useOrigin, Filter artifactFilter)
ResolveReportresolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, Filter artifactFilter)
ResolveReportresolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, Filter artifactFilter)
ResolveReportresolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly)
ResolveReportresolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate)
ResolveReportresolve(URL ivySource)
intretrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern, Filter artifactFilter, boolean sync, boolean useOrigin, boolean makeSymlinks)
intretrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern, Filter artifactFilter, boolean sync, boolean useOrigin)
intretrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern, Filter artifactFilter)
intretrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern)
intretrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern)
voidsetVariable(String varName, String value)
ListsortModuleDescriptors(Collection moduleDescriptors)
ListsortNodes(Collection nodes)
Stringsubstitute(String str)

Constructor Detail

Ivy14

public Ivy14()

Ivy14

public Ivy14(Ivy ivy)

Method Detail

check

public boolean check(URL ivyFile, String resolvername)

configure

public void configure(File settingsFile)

configure

public void configure(URL settingsURL)

configureDefault

public void configureDefault()

deliver

public void deliver(ModuleRevisionId mrid, String revision, File cache, String destIvyPattern, String status, Date pubdate, PublishingDependencyRevisionResolver pdrResolver, boolean validate, boolean resolveDynamicRevisions)

deliver

public void deliver(ModuleRevisionId mrid, String revision, File cache, String destIvyPattern, String status, Date pubdate, PublishingDependencyRevisionResolver pdrResolver, boolean validate)

determineArtifactsToCopy

public Map determineArtifactsToCopy(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern, Filter artifactFilter)

determineArtifactsToCopy

public Map determineArtifactsToCopy(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern)

download

public ArtifactDownloadReport download(Artifact artifact, File cache, boolean useOrigin)

findModule

public ResolvedModuleRevision findModule(ModuleRevisionId id)

getDependencies

public IvyNode[] getDependencies(ModuleDescriptor md, String[] confs, File cache, Date date, ResolveReport report, boolean validate, boolean transitive)

getDependencies

public IvyNode[] getDependencies(ModuleDescriptor md, String[] confs, File cache, Date date, ResolveReport report, boolean validate)

getDependencies

public IvyNode[] getDependencies(URL ivySource, String[] confs, File cache, Date date, boolean validate)

getVariable

public String getVariable(String name)

install

public ResolveReport install(ModuleRevisionId mrid, String from, String to, boolean transitive, boolean validate, boolean overwrite, Filter artifactFilter, File cache, String matcherName)

interrupt

public void interrupt()

interrupt

public void interrupt(Thread operatingThread)

isInterrupted

public boolean isInterrupted()

listModuleEntries

public ModuleEntry[] listModuleEntries(OrganisationEntry org)

listModules

public ModuleId[] listModules(ModuleId criteria, PatternMatcher matcher)

listModules

public ModuleRevisionId[] listModules(ModuleRevisionId criteria, PatternMatcher matcher)

listModules

public String[] listModules(String org)

listOrganisationEntries

public OrganisationEntry[] listOrganisationEntries()

listOrganisations

public String[] listOrganisations()

listRevisionEntries

public RevisionEntry[] listRevisionEntries(ModuleEntry module)

listRevisions

public String[] listRevisions(String org, String module)

listTokenValues

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

publish

public Collection publish(ModuleDescriptor md, DependencyResolver resolver, Collection srcArtifactPattern, String srcIvyPattern, Artifact[] extraArtifacts, boolean overwrite, String conf)

publish

public Collection publish(ModuleRevisionId mrid, String pubrevision, File cache, Collection srcArtifactPattern, String resolverName, String srcIvyPattern, String status, Date pubdate, Artifact[] extraArtifacts, boolean validate, boolean overwrite, boolean update, String conf)

publish

public Collection publish(ModuleRevisionId mrid, String pubrevision, File cache, String srcArtifactPattern, String resolverName, String srcIvyPattern, boolean validate, boolean overwrite)

publish

public Collection publish(ModuleRevisionId mrid, String pubrevision, File cache, String srcArtifactPattern, String resolverName, String srcIvyPattern, boolean validate)

publish

public Collection publish(ModuleRevisionId mrid, String pubrevision, File cache, String srcArtifactPattern, String resolverName, String srcIvyPattern, String status, Date pubdate, Artifact[] extraArtifacts, boolean validate, boolean overwrite, boolean update, String conf)

resolve

public ResolveReport resolve(File ivySource)

resolve

public ResolveReport resolve(ModuleDescriptor md, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, boolean useOrigin, boolean download, boolean outputReport, Filter artifactFilter)

resolve

public ResolveReport resolve(ModuleDescriptor md, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, boolean download, boolean outputReport, Filter artifactFilter)

resolve

public ResolveReport resolve(ModuleDescriptor md, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, Filter artifactFilter)

resolve

public ResolveReport resolve(ModuleDescriptor md, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, Filter artifactFilter)

resolve

public ResolveReport resolve(ModuleRevisionId mrid, String[] confs, boolean transitive, boolean changing, File cache, Date date, boolean validate, boolean useCacheOnly, boolean useOrigin, Filter artifactFilter)

resolve

public ResolveReport resolve(ModuleRevisionId mrid, String[] confs, boolean transitive, boolean changing, File cache, Date date, boolean validate, boolean useCacheOnly, Filter artifactFilter)

resolve

public ResolveReport resolve(ModuleRevisionId mrid, String[] confs)

resolve

public ResolveReport resolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, boolean useOrigin, Filter artifactFilter)

resolve

public ResolveReport resolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, Filter artifactFilter)

resolve

public ResolveReport resolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, Filter artifactFilter)

resolve

public ResolveReport resolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly)

resolve

public ResolveReport resolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate)

resolve

public ResolveReport resolve(URL ivySource)

retrieve

public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern, Filter artifactFilter, boolean sync, boolean useOrigin, boolean makeSymlinks)

retrieve

public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern, Filter artifactFilter, boolean sync, boolean useOrigin)

retrieve

public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern, Filter artifactFilter)

retrieve

public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern)

retrieve

public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern)

setVariable

public void setVariable(String varName, String value)

sortModuleDescriptors

public List sortModuleDescriptors(Collection moduleDescriptors)

sortNodes

public List sortNodes(Collection nodes)

substitute

public String substitute(String str)