@Component(role=LocalMavenRepositoryTool.class) public class LocalMavenRepositoryTool extends Object
Constructor and Description |
---|
LocalMavenRepositoryTool()
Creates a default instance of the
LocalRepositoryUtils , using the local Maven
repository location obtained from EnvironmentUtil . |
Modifier and Type | Method and Description |
---|---|
File |
getArtifactFile(String groupId,
String artifactId,
String version,
String classifier,
String extension) |
Set<String> |
getArtifactIndexLines() |
void |
removeLinesFromArtifactsIndex(String... linesToBeRemoved) |
void |
removeLinesFromMetadataIndex(String... linesToBeRemoved)
Hides specified artifacts built and installed by Tycho from future Tycho builds by removing
the corresponding lines with GAV coordinates format "g:a:v" from the local metadata index
file.
|
public LocalMavenRepositoryTool()
LocalRepositoryUtils
, using the local Maven
repository location obtained from EnvironmentUtil
.public File getArtifactFile(String groupId, String artifactId, String version, String classifier, String extension)
public Set<String> getArtifactIndexLines() throws IOException
IOException
public void removeLinesFromArtifactsIndex(String... linesToBeRemoved) throws IOException
IOException
public void removeLinesFromMetadataIndex(String... linesToBeRemoved) throws IOException
Background: Artifacts built and installed by Tycho are visible to all other Tycho builds in order to allow re-builds of individual modules. This method allows to prevent this for future builds. TODO should rather reuse FileBasedTychoRepositoryIndex here
IOException
- if index file could not be savedCopyright © 2008–2024 Eclipse Foundation. All rights reserved.