IvyCache

class IvyCache(val ivyHome: Option[File])

Provides methods for working at the level of a single jar file with the default Ivy cache.

class Object
trait Matchable
class Any

Value members

Concrete methods

def cacheJar(moduleID: ModuleID, file: File, lock: Option[GlobalLock], log: Logger): Unit

Caches the given 'file' with the given ID. It may be retrieved or cleared using this ID.

Caches the given 'file' with the given ID. It may be retrieved or cleared using this ID.

def clearCachedJar(id: ModuleID, lock: Option[GlobalLock], log: Logger): Unit

Clears the cache of the jar for the given ID.

Clears the cache of the jar for the given ID.

def lockFile: File
def retrieveCachedJar(id: ModuleID, toDirectory: File, lock: Option[GlobalLock], log: Logger): File

Copies the cached jar for the given ID to the directory 'toDirectory'. If the jar is not in the cache, NotInCache is thrown.

Copies the cached jar for the given ID to the directory 'toDirectory'. If the jar is not in the cache, NotInCache is thrown.

def withCachedJar[T](id: ModuleID, lock: Option[GlobalLock], log: Logger)(f: File => T): T

Get the location of the cached jar for the given ID in the Ivy cache. If the jar is not in the cache, NotInCache is thrown .

Get the location of the cached jar for the given ID in the Ivy cache. If the jar is not in the cache, NotInCache is thrown .

def withDefaultCache[T](lock: Option[GlobalLock], log: Logger)(f: DefaultRepositoryCacheManager => T): T

Calls the given function with the default Ivy cache.

Calls the given function with the default Ivy cache.

Concrete fields

val ivyHome: Option[File]