public class FileBasedTychoRepositoryIndex extends Object implements TychoRepositoryIndex
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,
MavenLogger logger) |
static TychoRepositoryIndex |
createMetadataIndex(File basedir,
FileLockService fileLockService,
MavenLogger logger) |
Set<GAV> |
getProjectGAVs()
Receive the set of GAVs contained in this index
|
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. |
public static final String ARTIFACTS_INDEX_RELPATH
public static final String METADATA_INDEX_RELPATH
public Set<GAV> getProjectGAVs()
TychoRepositoryIndex
getProjectGAVs
in interface TychoRepositoryIndex
public void addGav(GAV gav)
TychoRepositoryIndex
addGav
in interface TychoRepositoryIndex
gav
- not null
#save()}
public void removeGav(GAV gav)
TychoRepositoryIndex
removeGav
in interface TychoRepositoryIndex
#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.save
in interface TychoRepositoryIndex
IOException
public static TychoRepositoryIndex createMetadataIndex(File basedir, FileLockService fileLockService, MavenLogger logger)
public static TychoRepositoryIndex createArtifactsIndex(File basedir, FileLockService fileLockService, MavenLogger logger)
Copyright © 2008-2016 Eclipse Foundation. All Rights Reserved.