Package org.wso2.config.mapper
Class ConfigMapParserMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.wso2.config.mapper.ConfigMapParserMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="config-mapper-parser") public class ConfigMapParserMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Constructor Summary
Constructors Constructor Description ConfigMapParserMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Execution method of Mojo class.Map<String,String>getSecretsFromConfiguration(String configFilePath)Read deployment.toml file and return list of secrets
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionExecution method of Mojo class.- Throws:
org.apache.maven.plugin.MojoExecutionException- if error occurred while running the plugin
-
getSecretsFromConfiguration
public Map<String,String> getSecretsFromConfiguration(String configFilePath) throws IOException
Read deployment.toml file and return list of secrets- Parameters:
configFilePath- file path to deployment toml- Returns:
- Map of secrets
- Throws:
IOException
-
-