Package org.apache.ivy.core.retrieve
Class RetrieveEngine
java.lang.Object
org.apache.ivy.core.retrieve.RetrieveEngine
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EventManagerprivate static final intprivate RetrieveEngineSettings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetermineArtifactsToCopy(ModuleRevisionId mrid, String destFilePattern, RetrieveOptions options) private ResolutionCacheManagergetCache()private Comparator<ArtifactDownloadReport>The returned comparator should consider greater the artifact which gains the conflict battle.private String[]getConfs(ModuleRevisionId mrid, RetrieveOptions options) intretrieve(ModuleRevisionId mrid, String destFilePattern, RetrieveOptions options) Deprecated.retrieve(ModuleRevisionId mrid, RetrieveOptions options) private voidsync(Collection<File> target, Collection<File> existing) private booleanupToDate(File source, File target, RetrieveOptions options)
-
Field Details
-
KILO
private static final int KILO- See Also:
-
settings
-
eventManager
-
-
Constructor Details
-
RetrieveEngine
-
-
Method Details
-
retrieve
@Deprecated public int retrieve(ModuleRevisionId mrid, String destFilePattern, RetrieveOptions options) throws IOException Deprecated.example of destFilePattern : - lib/[organisation]/[module]/[artifact]-[revision].[type] - lib/[artifact].[type] : flatten with no revision moduleId is used with confs and localCacheDirectory to determine an ivy report file, used as input for the copy If such a file does not exist for any conf (resolve has not been called before ?) then an IllegalStateException is thrown and nothing is copied.- Parameters:
mrid- ModuleRevisionIddestFilePattern- Stringoptions- RetrieveOptions- Returns:
- int
- Throws:
IOException- if something goes wrong
-
retrieve
- Throws:
IOException
-
getConfs
- Throws:
IOException
-
getCache
-
sync
-
determineArtifactsToCopy
public Map<ArtifactDownloadReport,Set<String>> determineArtifactsToCopy(ModuleRevisionId mrid, String destFilePattern, RetrieveOptions options) throws ParseException, IOException - Throws:
ParseExceptionIOException
-
upToDate
-
getConflictResolvingPolicy
The returned comparator should consider greater the artifact which gains the conflict battle. This is used only during retrieve... prefer resolve conflict manager to resolve conflicts.- Returns:
- Comparator<ArtifactDownloadReport>
-
retrieve(org.apache.ivy.core.module.id.ModuleRevisionId, RetrieveOptions)instead