@Component(role=MetadataManipulator.class, hint="pom") public class PomManipulator extends AbstractMetadataManipulator
Modifier and Type | Field and Description |
---|---|
static String |
HINT |
logger
Constructor and Description |
---|
PomManipulator() |
Modifier and Type | Method and Description |
---|---|
boolean |
addMoreChanges(ProjectMetadata project,
VersionChangesDescriptor versionChangeContext) |
void |
applyChanges(ProjectMetadata project,
VersionChangesDescriptor versionChangeContext) |
void |
applyPropertyChange(PomFile pom,
String propertyName,
String propertyValue) |
protected void |
changeDependencies(String pomPath,
List<GAV> dependencies,
VersionChange change,
String version,
String newVersion) |
protected void |
changeDependencyManagement(String pomPath,
DependencyManagement dependencyManagment,
VersionChange change,
String version,
String newVersion) |
static boolean |
isGavEquals(GAV gav,
VersionChange change) |
static boolean |
isPluginGavEquals(GAV gav,
VersionChange change) |
Collection<String> |
validateChanges(ProjectMetadata project,
VersionChangesDescriptor versionChangeContext) |
void |
writeMetadata(ProjectMetadata project) |
isBundle, isBundle, isFeature, isFeature
public static final String HINT
public boolean addMoreChanges(ProjectMetadata project, VersionChangesDescriptor versionChangeContext)
addMoreChanges
in interface MetadataManipulator
addMoreChanges
in class AbstractMetadataManipulator
public void applyChanges(ProjectMetadata project, VersionChangesDescriptor versionChangeContext)
protected void changeDependencyManagement(String pomPath, DependencyManagement dependencyManagment, VersionChange change, String version, String newVersion)
protected void changeDependencies(String pomPath, List<GAV> dependencies, VersionChange change, String version, String newVersion)
public static boolean isGavEquals(GAV gav, VersionChange change)
public static boolean isPluginGavEquals(GAV gav, VersionChange change)
public void writeMetadata(ProjectMetadata project) throws IOException
IOException
public void applyPropertyChange(PomFile pom, String propertyName, String propertyValue)
public Collection<String> validateChanges(ProjectMetadata project, VersionChangesDescriptor versionChangeContext)
Copyright © 2008–2017 Eclipse Foundation. All rights reserved.