@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,
VersionChange change,
Set<VersionChange> allChanges) |
void |
applyChange(ProjectMetadata project,
VersionChange change,
Set<VersionChange> allChanges) |
void |
applyPropertyChange(MutablePomFile 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> |
validateChange(ProjectMetadata project,
VersionChange change) |
void |
writeMetadata(ProjectMetadata project) |
isBundle, isBundle, isFeature, isFeature
public static final String HINT
public boolean addMoreChanges(ProjectMetadata project, VersionChange change, Set<VersionChange> allChanges)
addMoreChanges
in interface MetadataManipulator
addMoreChanges
in class AbstractMetadataManipulator
public void applyChange(ProjectMetadata project, VersionChange change, Set<VersionChange> allChanges)
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(MutablePomFile pom, String propertyName, String propertyValue)
public Collection<String> validateChange(ProjectMetadata project, VersionChange change)
Copyright © 2008–2017 Eclipse Foundation. All rights reserved.