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 StringHINT-
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 booleanaddMoreChanges(ProjectMetadata project, VersionChangesDescriptor versionChangeContext)voidapplyChanges(ProjectMetadata project, VersionChangesDescriptor versionChangeContext)voidapplyPropertyChange(PomFile pom, String propertyName, String propertyValue)protected voidchangeDependencies(String pomPath, List<GAV> dependencies, PomVersionChange change, String version, String newVersion)protected voidchangeDependencyManagement(String pomPath, DependencyManagement dependencyManagment, PomVersionChange change, String version, String newVersion)static booleanisGavEquals(GAV gav, PomVersionChange change)static booleanisPluginGavEquals(GAV gav, PomVersionChange change)Collection<String>validateChanges(ProjectMetadata project, VersionChangesDescriptor versionChangeContext)voidwriteMetadata(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:
addMoreChangesin interfaceMetadataManipulator- Overrides:
addMoreChangesin 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)
-
-