public class FileBasedTychoRepositoryIndex extends DefaultTychoRepositoryIndex
Modifier and Type | Field and Description |
---|---|
static String |
ARTIFACTS_INDEX_RELPATH |
static String |
METADATA_INDEX_RELPATH |
Modifier and Type | Method and Description |
---|---|
void |
addGav(GAV gav)
Adds a GAV to the index
|
static TychoRepositoryIndex |
createArtifactsIndex(File basedir,
FileLockService fileLockService) |
static TychoRepositoryIndex |
createMetadataIndex(File basedir,
FileLockService fileLockService) |
void |
removeGav(GAV gav)
Remove a GAV from the index.
|
void |
save()
Changes performed via
TychoRepositoryIndex.addGav(GAV) , TychoRepositoryIndex.removeGav(GAV) will only be reflected
in the memory state of the index. |
getProjectGAVs, read, setGavs, write
public static final String ARTIFACTS_INDEX_RELPATH
public static final String METADATA_INDEX_RELPATH
public void addGav(GAV gav)
TychoRepositoryIndex
addGav
in interface TychoRepositoryIndex
addGav
in class DefaultTychoRepositoryIndex
gav
- not null
#save()}
public void removeGav(GAV gav)
TychoRepositoryIndex
removeGav
in interface TychoRepositoryIndex
removeGav
in class DefaultTychoRepositoryIndex
#save()}
public void save() throws IOException
TychoRepositoryIndex
TychoRepositoryIndex.addGav(GAV)
, TychoRepositoryIndex.removeGav(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 FileBasedTychoRepositoryIndex#createArtifactsIndex(java.io.File)
) the
method will store the current memory content to the persistence storage.IOException
public static TychoRepositoryIndex createMetadataIndex(File basedir, FileLockService fileLockService)
public static TychoRepositoryIndex createArtifactsIndex(File basedir, FileLockService fileLockService)
Copyright © 2008–2015 Eclipse Foundation. All rights reserved.