@Mojo(name="generateI18nEnumHelper",
defaultPhase=GENERATE_SOURCES)
public class GenerateI18nEnumHelperMojo
extends AbstractI18nMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
className
Name of the generated class.
|
protected List<String> |
enums
List of enums to scan to generate i18n keys.
|
protected File |
outputdirectory
The root directory where to generated.
|
protected String |
packageName
To set the package fully qualified name of the generated class.
|
protected String |
prefix
Prefix to add to generated i18n keys.
|
bundles, encoding, locales, mavenSession, project, silent, verbose| Constructor and Description |
|---|
GenerateI18nEnumHelperMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAction() |
backupFile, checkBundle, checkPackaging, failsIfWarning, getBackupFile, getEncoding, getProject, init, isSilent, isVerbose, setEncoding, setProject, setVerboseacceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, checkEncoding, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, needInvoke, needInvoke, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFilegetLog, getPluginContext, setLog, setPluginContext@Parameter(property="i18n.prefix") protected String prefix
@Parameter(property="i18n.packageName") protected String packageName
- replaced by .).@Parameter(property="i18n.className",
defaultValue="I18nEnumHelper",
required=true)
protected String className
@Parameter(property="i18n.outputdirectory",
defaultValue="${basedir}/target/generated-sources/java",
required=true)
protected File outputdirectory
Copyright © 2007–2016 CodeLutin. All rights reserved.