src/java/fr/jayasoft/ivy/Ivy.java
/**
     * Download an artifact to the cache.
     * Not used internally, useful especially for IDE plugins
     * needing to download artifact one by one (for source or javadoc artifact,
     * for instance).
     * 
     * Downloaded artifact file can be accessed using getArchiveFileInCache method.
     * 
     * It is possible to track the progression of the download using classical ivy 
     * progress monitoring feature (see addTransferListener).
     * 
     * @param artifact the artifact to download
     * @param cache the cache to use. If null, will use default cache
     * @return a report concerning the download
     */
Download an artifact to the cache.
Not used internally, useful especially for IDE plugins
needing to download artifact one by one (for source or javadoc artifact,
for instance).

Downloaded artifact file can be accessed using getArchiveFileInCache method.

It is possible to track the progression of the download using classical ivy
progress monitoring feature .

@param artifact the artifact to download
@param cache the cache to use. If null, will use default cache
@return a report concerning the download
Download an artifact to the cache . Not used internally useful especially for IDE plugins needing to download artifact one by one ( for source or javadoc artifact for instance ) . Downloaded artifact file can be accessed using getArchiveFileInCache method . It is possible to track the progression of the download using classical ivy progress monitoring feature . @param artifact the artifact to download @param cache the cache to use . If null will use default cache @return a report concerning the download
public ArtifactDownloadReport download(Artifact artifact, File cache) {
        IvyContext.getContext().setIvy(this);
        IvyContext.getContext().setCache(cache);
        if (cache == null) {
            cache = getDefaultCache();
        }
        DependencyResolver resolver = getResolver(artifact.getModuleRevisionId().getModuleId());
        DownloadReport r = resolver.download(new Artifact[] {artifact}, this, cache, false);
        return r.getArtifactReport(artifact);
    }
public ArtifactDownloadReport download ( Artifact artifact , File cache ) { IvyContext . getContext ( ) . setIvy ( this ) ; IvyContext . getContext ( ) . setCache ( cache ) ; if ( cache == null ) { cache = getDefaultCache ( ) ; } DependencyResolver resolver = getResolver ( artifact . getModuleRevisionId ( ) . getModuleId ( ) ) ; DownloadReport r = resolver . download ( new Artifact [ ] { artifact } , this , cache , false ) ; return r . getArtifactReport ( artifact ) ; }
Download an artifact to the cache.
Download an artifact to the cache .