Repositories

{@code Repositories} manages all the system repositories. Repositories are stored in the user home directory (System.getProperty("user.home")) in the directory .avail/repositories. If the repositories directory does not exist it will be created. Additionally, if the .avail directory does not exist, it will be created.

Author

Richard Arriaga

Properties

Link copied to clipboard

The directory in which repositories are created/found.

Functions

Link copied to clipboard

Add a Repository for the given ModuleRoot.

Link copied to clipboard
Link copied to clipboard
fun clearRepositoryFor(rootName: String)

Clear the Repository for the given Repository.rootName.

Link copied to clipboard
Link copied to clipboard

Close each Repository in Repositories, then completely remove them all.

Link copied to clipboard
fun deleteRepository(rootName: String)

Delete the Repository for the given Repository.rootName.

Link copied to clipboard
operator fun get(name: String): Repository?
Link copied to clipboard
fun setDirectoryLocation(repositoriesPath: File)

Switch to using a different directory for finding/creating repository files. This has no effect on existing open repositories, but is useful prior to running tests.