public class FileBasedTychoRepositoryIndex extends DefaultTychoRepositoryIndex
Modifier and Type | Field and Description |
---|---|
static String |
ARTIFACTS_INDEX_RELPATH |
static String |
METADATA_INDEX_RELPATH |
ENCODING, EOL
Modifier and Type | Method and Description |
---|---|
static void |
addProject(File basedir,
String groupId,
String artifactId,
String version) |
static TychoRepositoryIndex |
createRepositoryIndex(File basedir,
String relpath) |
void |
save()
Changes performed via
TychoRepositoryIndex.addProject(GAV) , TychoRepositoryIndex.remove(GAV) will only be reflected
in the memory state of the index. |
addProject, getProjectGAVs, read, remove, write
public static final String ARTIFACTS_INDEX_RELPATH
public static final String METADATA_INDEX_RELPATH
public void save() throws IOException
TychoRepositoryIndex
TychoRepositoryIndex.addProject(GAV)
, TychoRepositoryIndex.remove(GAV)
will only be reflected
in the memory state of the index. In case the index is bound some persistence location (e.g.
a file see createRepositoryIndex(java.io.File, String)
)
the method will store the current memory content to the persistence storage.IOException
public static TychoRepositoryIndex createRepositoryIndex(File basedir, String relpath)
public static void addProject(File basedir, String groupId, String artifactId, String version) throws IOException
IOException
Copyright © 2008-2012 Eclipse Foundation. All Rights Reserved.