Repositories

object 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

Functions

Link copied to clipboard
fun addRepository(root: ModuleRoot)

Add a Repository for the given ModuleRoot.

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

Clear the Repository for the given Repository.rootName.

Link copied to clipboard
fun closeAllRepositories()
Link copied to clipboard
fun closeAndRemoveAllRepositories()

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.

Properties

Link copied to clipboard
var directory: File

The directory in which repositories are created/found.