public final class LocalRepository extends java.lang.Object implements ArtifactRepository
LocalRepositoryManager which is usually determined from the type of
the repository.| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
basedir |
private java.lang.String |
type |
| Constructor and Description |
|---|
LocalRepository(java.io.File basedir)
Creates a new local repository with the specified base directory and unknown type.
|
LocalRepository(java.io.File basedir,
java.lang.String type)
Creates a new local repository with the specified properties.
|
LocalRepository(java.lang.String basedir)
Creates a new local repository with the specified base directory and unknown type.
|
| Modifier and Type | Method and Description |
|---|---|
private static <T> boolean |
eq(T s1,
T s2) |
boolean |
equals(java.lang.Object obj) |
java.io.File |
getBasedir()
Gets the base directory of the repository.
|
java.lang.String |
getContentType()
Gets the type of the repository, for example "default".
|
java.lang.String |
getId()
Gets the identifier of this repository.
|
private static int |
hash(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public LocalRepository(java.lang.String basedir)
basedir - The base directory of the repository, may be null.public LocalRepository(java.io.File basedir)
basedir - The base directory of the repository, may be null.public LocalRepository(java.io.File basedir,
java.lang.String type)
basedir - The base directory of the repository, may be null.type - The type of the repository, may be null.public java.lang.String getContentType()
ArtifactRepositorygetContentType in interface ArtifactRepositorynull.public java.lang.String getId()
ArtifactRepositorygetId in interface ArtifactRepositorynull.public java.io.File getBasedir()
null if none.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectprivate static <T> boolean eq(T s1,
T s2)
public int hashCode()
hashCode in class java.lang.Objectprivate static int hash(java.lang.Object obj)