Class PomManipulator
- java.lang.Object
-
- org.eclipse.tycho.versions.manipulation.AbstractMetadataManipulator
-
- org.eclipse.tycho.versions.manipulation.PomManipulator
-
- All Implemented Interfaces:
MetadataManipulator
@Component(role=MetadataManipulator.class, hint="pom") public class PomManipulator extends AbstractMetadataManipulator
-
-
Field Summary
Fields Modifier and Type Field Description static String
HINT
-
Fields inherited from class org.eclipse.tycho.versions.manipulation.AbstractMetadataManipulator
logger
-
-
Constructor Summary
Constructors Constructor Description PomManipulator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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, PomVersionChange change, String version, String newVersion)
protected void
changeDependencyManagement(String pomPath, DependencyManagement dependencyManagment, PomVersionChange change, String version, String newVersion)
static boolean
isGavEquals(GAV gav, PomVersionChange change)
static boolean
isPluginGavEquals(GAV gav, PomVersionChange change)
Collection<String>
validateChanges(ProjectMetadata project, VersionChangesDescriptor versionChangeContext)
void
writeMetadata(ProjectMetadata project)
-
Methods inherited from class org.eclipse.tycho.versions.manipulation.AbstractMetadataManipulator
isBundle, isBundle, isFeature, isFeature
-
-
-
-
Field Detail
-
HINT
public static final String HINT
- See Also:
- Constant Field Values
-
-
Method Detail
-
addMoreChanges
public boolean addMoreChanges(ProjectMetadata project, VersionChangesDescriptor versionChangeContext)
- Specified by:
addMoreChanges
in interfaceMetadataManipulator
- Overrides:
addMoreChanges
in classAbstractMetadataManipulator
-
applyChanges
public void applyChanges(ProjectMetadata project, VersionChangesDescriptor versionChangeContext)
-
changeDependencyManagement
protected void changeDependencyManagement(String pomPath, DependencyManagement dependencyManagment, PomVersionChange change, String version, String newVersion)
-
changeDependencies
protected void changeDependencies(String pomPath, List<GAV> dependencies, PomVersionChange change, String version, String newVersion)
-
isGavEquals
public static boolean isGavEquals(GAV gav, PomVersionChange change)
-
isPluginGavEquals
public static boolean isPluginGavEquals(GAV gav, PomVersionChange change)
-
writeMetadata
public void writeMetadata(ProjectMetadata project) throws IOException
- Throws:
IOException
-
applyPropertyChange
public void applyPropertyChange(PomFile pom, String propertyName, String propertyValue)
-
validateChanges
public Collection<String> validateChanges(ProjectMetadata project, VersionChangesDescriptor versionChangeContext)
-
-