fr.jayasoft.ivy
Interface DependencyResolver


public interface DependencyResolver

Author:
x.hanin

Method Summary
 fr.jayasoft.ivy.report.DownloadReport download(Artifact[] artifacts, Ivy ivy, java.io.File cache)
           
 void dumpConfig()
           
 boolean exists(Artifact artifact)
           
 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.
 java.lang.String getName()
           
 fr.jayasoft.ivy.resolver.ModuleEntry[] listModules(fr.jayasoft.ivy.resolver.OrganisationEntry org)
           
 fr.jayasoft.ivy.resolver.OrganisationEntry[] listOrganisations()
           
 fr.jayasoft.ivy.resolver.RevisionEntry[] listRevisions(fr.jayasoft.ivy.resolver.ModuleEntry module)
           
 void publish(Artifact artifact, java.io.File src, boolean overwrite)
           
 void reportFailure()
          Reports last resolve failure as Messages
 void reportFailure(Artifact art)
          Reports last artifact download failure as Messages
 void setName(java.lang.String name)
          Should only be used by configurator
 

Method Detail

getName

java.lang.String getName()

setName

void setName(java.lang.String name)
Should only be used by configurator

Parameters:
name - the new name of the resolver

getDependency

ResolvedModuleRevision getDependency(DependencyDescriptor dd,
                                     ResolveData data)
                                     throws java.text.ParseException
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 ##)

Throws:
java.text.ParseException

download

fr.jayasoft.ivy.report.DownloadReport download(Artifact[] artifacts,
                                               Ivy ivy,
                                               java.io.File cache)

exists

boolean exists(Artifact artifact)

publish

void publish(Artifact artifact,
             java.io.File src,
             boolean overwrite)
             throws java.io.IOException
Throws:
java.io.IOException

reportFailure

void reportFailure()
Reports last resolve failure as Messages


reportFailure

void reportFailure(Artifact art)
Reports last artifact download failure as Messages

Parameters:
art -

listOrganisations

fr.jayasoft.ivy.resolver.OrganisationEntry[] listOrganisations()

listModules

fr.jayasoft.ivy.resolver.ModuleEntry[] listModules(fr.jayasoft.ivy.resolver.OrganisationEntry org)

listRevisions

fr.jayasoft.ivy.resolver.RevisionEntry[] listRevisions(fr.jayasoft.ivy.resolver.ModuleEntry module)

dumpConfig

void dumpConfig()