Package org.eclipse.aether.repository
Class LocalRepository
java.lang.Object
org.eclipse.aether.repository.LocalRepository
- All Implemented Interfaces:
ArtifactRepository
A repository on the local file system used to cache contents of remote repositories and to store locally installed
artifacts. Note that this class merely describes such a repository, actual access to the contained artifacts is
handled by a
LocalRepositoryManager
which is usually determined from the type
of
the repository.-
Constructor Summary
ConstructorDescriptionLocalRepository
(File basedir) Creates a new local repository with the specified base directory and unknown type.LocalRepository
(File basedir, String type) Creates a new local repository with the specified properties.LocalRepository
(String basedir) Creates a new local repository with the specified base directory and unknown type. -
Method Summary
-
Constructor Details
-
LocalRepository
Creates a new local repository with the specified base directory and unknown type.- Parameters:
basedir
- The base directory of the repository, may benull
.
-
LocalRepository
Creates a new local repository with the specified base directory and unknown type.- Parameters:
basedir
- The base directory of the repository, may benull
.
-
LocalRepository
Creates a new local repository with the specified properties.- Parameters:
basedir
- The base directory of the repository, may benull
.type
- The type of the repository, may benull
.
-
-
Method Details
-
getContentType
Description copied from interface:ArtifactRepository
Gets the type of the repository, for example "default".- Specified by:
getContentType
in interfaceArtifactRepository
- Returns:
- The (case-sensitive) type of the repository, never
null
.
-
getId
Description copied from interface:ArtifactRepository
Gets the identifier of this repository.- Specified by:
getId
in interfaceArtifactRepository
- Returns:
- The (case-sensitive) identifier, never
null
.
-
getBasedir
Gets the base directory of the repository.- Returns:
- The base directory or
null
if none.
-
toString
-
equals
-
hashCode
-