public class FeatureFileGeneratorUtils extends Object
| Constructor and Description |
|---|
FeatureFileGeneratorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createFeatureXml(FeatureResourceBundle resourceBundle,
File featureXmlFile)
Generates the feature.xml file for a feature.
|
static void |
createManifestMFFile(FeatureResourceBundle resourceBundle,
File featureManifestFile)
Creates manifest file for a feature.
|
static void |
createP2Inf(FeatureResourceBundle resourceBundle,
File p2InfFile)
Generates the P2Inf file.
|
static void |
createPropertiesFile(FeatureResourceBundle resourceBundle,
File featurePropertyFile)
Generates the feature property file.
|
public static void createPropertiesFile(FeatureResourceBundle resourceBundle, File featurePropertyFile) throws IOException, MissingRequiredPropertyException
resourceBundle - containing the project resourcesfeaturePropertyFile - File Object representing the feature property fileIOException - throws when unable to create the feature property file.MissingRequiredPropertyException - throws if mandatory properties are not found in provided property filespublic static void createManifestMFFile(FeatureResourceBundle resourceBundle, File featureManifestFile) throws IOException
resourceBundle - containing the project resourcesfeatureManifestFile - File Object representing the manifest fileIOException - throws when unable to create the manifest filepublic static void createP2Inf(FeatureResourceBundle resourceBundle, File p2InfFile) throws IOException
resourceBundle - containing the project resourcesp2InfFile - File object representing the p2inf fileIOException - throws when unable to read or create p2.inf filepublic static void createFeatureXml(FeatureResourceBundle resourceBundle, File featureXmlFile) throws TransformerException, IOException, SAXException, ParserConfigurationException
resourceBundle - containing the project resourcesfeatureXmlFile - File object representing the feature xml fileTransformerException - throws when xml transformation failsIOException - throws when unable to read/write feature.xml fileSAXException - throws when failing to parse the feature.xml fileParserConfigurationException - throws when failing to parse the feature.xml fileCopyright © 2015 WSO2. All rights reserved.