public class ResourceGenMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceGenMojo.LicenseCodeWriter
Writes all the source files under the specified file folder and inserts a
license file each java source file.
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
cliResource
Directory with properties files to be processed from the command line.
|
private java.io.File |
destDir
Location of the destination directory.
|
private java.lang.String |
encoding |
private java.io.File |
license |
private java.lang.String |
localizationUtilitiesPkgName
package to be used for the localization utility classes
|
private org.apache.maven.project.MavenProject |
project |
private org.apache.maven.shared.model.fileset.FileSet |
resources
File set of the properties files to be processed.
|
| Constructor and Description |
|---|
ResourceGenMojo() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
addLocalizationUtilityPackageName(java.lang.String className) |
private int |
countArgs(java.lang.String value) |
void |
execute() |
private java.lang.String |
getClassName(java.io.File res)
Computes the class name from the resource bundle name.
|
private java.io.File destDir
private org.apache.maven.shared.model.fileset.FileSet resources
private java.lang.String cliResource
private java.lang.String localizationUtilitiesPkgName
private java.io.File license
private java.lang.String encoding
private org.apache.maven.project.MavenProject project
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprivate java.lang.String addLocalizationUtilityPackageName(java.lang.String className)
private int countArgs(java.lang.String value)
private java.lang.String getClassName(java.io.File res)