public class Repository
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static java.util.Map<java.lang.String,Repository> |
cache |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.lang.String |
name |
private java.io.File |
root |
Modifier | Constructor and Description |
---|---|
protected |
Repository(java.io.File root) |
protected |
Repository(java.io.File root,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
archive(Artifact artifact,
java.io.File file,
byte[] manifest) |
static Repository |
create(java.io.File root) |
static Repository |
create(java.io.File root,
java.lang.String name) |
boolean |
equals(java.lang.Object o) |
void |
filterLegacy(java.util.List<java.io.File> list) |
static Repository |
get(java.lang.String name) |
java.io.File |
getFile(java.lang.String path) |
int |
hashCode() |
static Repository |
replace(java.io.File root,
java.lang.String name) |
Artifact |
resolve(Artifact artifact) |
static Artifact |
resolveAll(Artifact artifact) |
private static final org.apache.logging.log4j.Logger LOGGER
static final java.util.Map<java.lang.String,Repository> cache
private final java.lang.String name
private final java.io.File root
protected Repository(java.io.File root) throws java.io.IOException
java.io.IOException
protected Repository(java.io.File root, java.lang.String name)
public static Repository create(java.io.File root) throws java.io.IOException
java.io.IOException
public static Repository create(java.io.File root, java.lang.String name)
public static Repository replace(java.io.File root, java.lang.String name)
public static Repository get(java.lang.String name)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.io.File getFile(java.lang.String path)
public java.io.File archive(Artifact artifact, java.io.File file, byte[] manifest)
public void filterLegacy(java.util.List<java.io.File> list)