1 6 package fr.jayasoft.ivy; 7 8 import java.io.File ; 9 import java.io.IOException ; 10 import java.text.ParseException ; 11 import java.util.Map ; 12 13 import fr.jayasoft.ivy.report.DownloadReport; 14 import fr.jayasoft.ivy.resolver.ModuleEntry; 15 import fr.jayasoft.ivy.resolver.OrganisationEntry; 16 import fr.jayasoft.ivy.resolver.RevisionEntry; 17 18 22 public interface DependencyResolver { 23 String getName(); 24 28 void setName(String name); 29 37 ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException ; 38 DownloadReport download(Artifact[] artifacts, Ivy ivy, File cache, boolean useOrigin); 39 boolean exists(Artifact artifact); 40 void publish(Artifact artifact, File src, boolean overwrite) throws IOException ; 41 42 45 void reportFailure(); 46 50 void reportFailure(Artifact art); 51 52 57 67 String [] listTokenValues(String token, Map otherTokenValues); 68 69 OrganisationEntry[] listOrganisations(); 70 ModuleEntry[] listModules(OrganisationEntry org); 71 RevisionEntry[] listRevisions(ModuleEntry module); 72 73 void dumpConfig(); 74 } 75 | Popular Tags |