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,
MavenLogger logger) |
static TychoRepositoryIndex |
createMetadataIndex(File basedir,
FileLockService fileLockService,
MavenLogger logger) |
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, setGavspublic static final String ARTIFACTS_INDEX_RELPATH
public static final String METADATA_INDEX_RELPATH
public void addGav(GAV gav)
TychoRepositoryIndexaddGav in interface TychoRepositoryIndexaddGav in class DefaultTychoRepositoryIndexgav - not null#save()}public void removeGav(GAV gav)
TychoRepositoryIndexremoveGav in interface TychoRepositoryIndexremoveGav in class DefaultTychoRepositoryIndex#save()}public void save()
throws IOException
TychoRepositoryIndexTychoRepositoryIndex.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.IOExceptionpublic static TychoRepositoryIndex createMetadataIndex(File basedir, FileLockService fileLockService, MavenLogger logger)
public static TychoRepositoryIndex createArtifactsIndex(File basedir, FileLockService fileLockService, MavenLogger logger)
Copyright © 2008-2015 Eclipse Foundation. All Rights Reserved.