ComponentManager

sbt.internal.librarymanagement.ComponentManager
See theComponentManager companion object
class ComponentManager(globalLock: GlobalLock, provider: ComponentProvider, ivyHome: Option[File], val log: Logger)

A component manager provides access to the pieces of xsbt that are distributed as components. There are two types of components. The first type is compiled subproject jars with their dependencies. The second type is a subproject distributed as a source jar so that it can be compiled against a specific version of Scala.

The component manager provides services to install and retrieve components to the local repository. This is used for compiled source jars so that the compilation need not be repeated for other projects on the same machine.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def cache(id: String): Unit

Install the files for component 'id' to the local repository. This is usually used after writing files to the directory returned by 'location'.

Install the files for component 'id' to the local repository. This is usually used after writing files to the directory returned by 'location'.

Attributes

def clearCache(id: String): Unit
def define(id: String, files: Iterable[File]): Unit
def file(id: String)(ifMissing: IfMissing): File

Get the file for component 'id', throwing an exception if no files or multiple files exist for the component.

Get the file for component 'id', throwing an exception if no files or multiple files exist for the component.

Attributes

def files(id: String)(ifMissing: IfMissing): Iterable[File]

Get all of the files for component 'id', throwing an exception if no files exist for the component.

Get all of the files for component 'id', throwing an exception if no files exist for the component.

Attributes

Concrete fields

val log: Logger