@Mojo(name="gen",
defaultPhase=GENERATE_RESOURCES)
@Execute(goal="get")
public class GenerateMojo
extends AbstractI18nGenerateMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkBundle
A flag to check that bundles are complete (no missing i18n translations).
|
protected boolean |
genSrc
To update generated files to user i18n files.
|
protected boolean |
keepBackup
To keep a backup of old i18n bundles (suffiex by a
~). |
protected boolean |
keepGetters
To keep generated getter files.
|
protected boolean |
showEmpty
A flag to show missing i18n translation.
|
protected File |
src
Directory where to find project i18n files.
|
protected boolean |
strictMode
Strict mode to only keep in user i18n detected i18n keys and remove obsolete keys.
|
artifactId, outbundles, encoding, locales, mavenSession, project, silent, verbose| Constructor and Description |
|---|
GenerateMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkSkip() |
protected void |
doAction() |
addGetter, getGetterFile, needGenerationbackupFile, checkBundle, checkPackaging, getBackupFile, getEncoding, getProject, init, isSilent, isVerbose, setEncoding, setProject, setVerboseacceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, checkEncoding, checkResource, checkRunOnceDone, 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.src",
defaultValue="${basedir}/src/main/resources/i18n",
required=true)
protected File src
@Parameter(property="i18n.genSrc",
defaultValue="true")
protected boolean genSrc
@Parameter(property="i18n.strictMode",
defaultValue="false")
protected boolean strictMode
@Parameter(property="i18n.checkBundle",
defaultValue="true",
required=true)
protected boolean checkBundle
@Parameter(property="i18n.showEmpty",
defaultValue="false",
required=true)
protected boolean showEmpty
checkBundle to be activated).@Parameter(property="i18n.keepBackup",
defaultValue="false")
protected boolean keepBackup
~).
Note: By default, this property is not active.@Parameter(property="i18n.keepGetters",
defaultValue="false")
protected boolean keepGetters
Copyright © 2007–2016 CodeLutin. All rights reserved.