public class PomHelper extends Object
| Constructor and Description |
|---|
PomHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addPomFiles(File file,
List<PomUpdateStatus> pomsToChange) |
static List<de.pdark.decentxml.Element> |
findElementsWithName(de.pdark.decentxml.Element rootElement,
String elementName) |
static de.pdark.decentxml.Element |
firstChild(de.pdark.decentxml.Element element,
String elementName) |
static String |
firstChildTextContent(de.pdark.decentxml.Element element,
String elementName) |
static de.pdark.decentxml.Document |
parseXmlFile(File pomFile) |
static boolean |
updateDependencyVersion(de.pdark.decentxml.Document doc,
DependencyVersionChange change,
Map<String,String> propertyChanges) |
static boolean |
updatePluginVersion(de.pdark.decentxml.Document doc,
DependencyVersionChange change,
Map<String,String> propertyChanges) |
static boolean |
updatePomVersions(List<PomUpdateStatus> pomsToChange,
List<DependencyVersionChange> changes) |
static boolean |
updatePomVersionsInPoms(File dir,
List<DependencyVersionChange> changes) |
static boolean |
updateProperties(de.pdark.decentxml.Document doc,
Map<String,String> propertyChanges) |
public static boolean updatePomVersionsInPoms(File dir, List<DependencyVersionChange> changes) throws IOException
IOExceptionpublic static boolean updatePomVersions(List<PomUpdateStatus> pomsToChange, List<DependencyVersionChange> changes) throws IOException
IOExceptionprotected static void addPomFiles(File file, List<PomUpdateStatus> pomsToChange)
public static boolean updatePluginVersion(de.pdark.decentxml.Document doc,
DependencyVersionChange change,
Map<String,String> propertyChanges)
public static boolean updateDependencyVersion(de.pdark.decentxml.Document doc,
DependencyVersionChange change,
Map<String,String> propertyChanges)
public static List<de.pdark.decentxml.Element> findElementsWithName(de.pdark.decentxml.Element rootElement, String elementName)
public static String firstChildTextContent(de.pdark.decentxml.Element element, String elementName)
public static de.pdark.decentxml.Element firstChild(de.pdark.decentxml.Element element,
String elementName)
public static boolean updateProperties(de.pdark.decentxml.Document doc,
Map<String,String> propertyChanges)
public static de.pdark.decentxml.Document parseXmlFile(File pomFile) throws IOException
IOExceptionCopyright © 2076–2017 Red Hat. All rights reserved.