public class ProductFileUtils extends Object
| Constructor and Description |
|---|
ProductFileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
generateProductFile(ProductFileConfig productFileConfig,
org.apache.maven.project.MavenProject mavenProject)
Write Product bean as an XML to a product file.
|
static String |
getProductFilePath(org.apache.maven.project.MavenProject mavenProject)
Get path to dynamically generated product file.
|
public static void generateProductFile(ProductFileConfig productFileConfig, org.apache.maven.project.MavenProject mavenProject) throws JAXBException, org.apache.maven.plugin.MojoExecutionException, IOException
productFileConfig - productFileConfig bean as read from project pom.mavenProject - mavenProject bean as read from project pom.JAXBException - Is thrown if an error occurs in writing configurations into a string.org.apache.maven.plugin.MojoExecutionException - Is thrown if maven project is not been able to be read.IOException - Is thrown if an error occurs in writing configurations into a product file.public static String getProductFilePath(org.apache.maven.project.MavenProject mavenProject) throws org.apache.maven.plugin.MojoExecutionException
mavenProject - bean as read from project pom.org.apache.maven.plugin.MojoExecutionException - Is thrown if maven project is not been able to be read.Copyright © 2017 WSO2. All rights reserved.