org.apache.ivy
public class Ivy14 extends Object
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 | |
---|---|
boolean | check(URL ivyFile, String resolvername) |
void | configure(File settingsFile) |
void | configure(URL settingsURL) |
void | configureDefault() |
void | deliver(ModuleRevisionId mrid, String revision, File cache, String destIvyPattern, String status, Date pubdate, PublishingDependencyRevisionResolver pdrResolver, boolean validate, boolean resolveDynamicRevisions) |
void | deliver(ModuleRevisionId mrid, String revision, File cache, String destIvyPattern, String status, Date pubdate, PublishingDependencyRevisionResolver pdrResolver, boolean validate) |
Map | determineArtifactsToCopy(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern, Filter artifactFilter) |
Map | determineArtifactsToCopy(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern) |
ArtifactDownloadReport | download(Artifact artifact, File cache, boolean useOrigin) |
ResolvedModuleRevision | findModule(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) |
String | getVariable(String name) |
ResolveReport | install(ModuleRevisionId mrid, String from, String to, boolean transitive, boolean validate, boolean overwrite, Filter artifactFilter, File cache, String matcherName) |
void | interrupt() |
void | interrupt(Thread operatingThread) |
boolean | isInterrupted() |
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) |
Collection | publish(ModuleDescriptor md, DependencyResolver resolver, Collection srcArtifactPattern, String srcIvyPattern, Artifact[] extraArtifacts, boolean overwrite, String conf) |
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) |
Collection | publish(ModuleRevisionId mrid, String pubrevision, File cache, String srcArtifactPattern, String resolverName, String srcIvyPattern, boolean validate, boolean overwrite) |
Collection | publish(ModuleRevisionId mrid, String pubrevision, File cache, String srcArtifactPattern, String resolverName, String srcIvyPattern, boolean validate) |
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) |
ResolveReport | resolve(File ivySource) |
ResolveReport | resolve(ModuleDescriptor md, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, boolean useOrigin, boolean download, boolean outputReport, Filter artifactFilter) |
ResolveReport | resolve(ModuleDescriptor md, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, boolean download, boolean outputReport, Filter artifactFilter) |
ResolveReport | resolve(ModuleDescriptor md, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, Filter artifactFilter) |
ResolveReport | resolve(ModuleDescriptor md, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, Filter artifactFilter) |
ResolveReport | resolve(ModuleRevisionId mrid, String[] confs, boolean transitive, boolean changing, File cache, Date date, boolean validate, boolean useCacheOnly, boolean useOrigin, Filter artifactFilter) |
ResolveReport | resolve(ModuleRevisionId mrid, String[] confs, boolean transitive, boolean changing, File cache, Date date, boolean validate, boolean useCacheOnly, Filter artifactFilter) |
ResolveReport | resolve(ModuleRevisionId mrid, String[] confs) |
ResolveReport | resolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, boolean useOrigin, Filter artifactFilter) |
ResolveReport | resolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, boolean transitive, Filter artifactFilter) |
ResolveReport | resolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly, Filter artifactFilter) |
ResolveReport | resolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate, boolean useCacheOnly) |
ResolveReport | resolve(URL ivySource, String revision, String[] confs, File cache, Date date, boolean validate) |
ResolveReport | resolve(URL ivySource) |
int | retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern, Filter artifactFilter, boolean sync, boolean useOrigin, boolean makeSymlinks) |
int | retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern, Filter artifactFilter, boolean sync, boolean useOrigin) |
int | retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern, Filter artifactFilter) |
int | retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern, String destIvyPattern) |
int | retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern) |
void | setVariable(String varName, String value) |
List | sortModuleDescriptors(Collection moduleDescriptors) |
List | sortNodes(Collection nodes) |
String | substitute(String str) |