public class P2Utils extends Object
| Constructor and Description |
|---|
P2Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createCategoryFile(org.apache.maven.project.MavenProject project,
List categories,
File categoryFile)
Create the category file.
|
static int |
getLastIndexOfProperties(File p2InfFile)
Traverse the given p2Inf file, find the last index of the property entries in the file and returns.
|
static Document |
getManifestDocument()
Returns a blank document.
|
static String |
getMatchRule(String matchStr)
Takes a match string and returns the correct matching string correspond to it
|
static boolean |
isMatchString(String matchStr) |
static boolean |
isPatch(String matchStr)
Returns whether the given matching string matches the patch matching rule.
|
public static int getLastIndexOfProperties(File p2InfFile) throws IOException
p2InfFile - p2Inf Flie objectIOException - throws if unable to read the p2Inf filepublic static boolean isMatchString(String matchStr)
public static String getMatchRule(String matchStr)
matchStr - matching stringpublic static boolean isPatch(String matchStr)
matchStr - matching string to checkpublic static void createCategoryFile(org.apache.maven.project.MavenProject project,
List categories,
File categoryFile)
throws ParserConfigurationException,
TransformerException,
org.apache.maven.plugin.MojoExecutionException
project - Maven projectcategories - categories listcategoryFile - category fileParserConfigurationException - throws if fail to generate a manifest documentTransformerException - throws when fail to transform the category fileorg.apache.maven.plugin.MojoExecutionException - throws if fail to process featurespublic static Document getManifestDocument() throws ParserConfigurationException
ParserConfigurationException - throws when fail to build a new xml documentCopyright © 2015 WSO2. All rights reserved.