@Mojo(name="gen",
defaultPhase=GENERATE_RESOURCES)
@Execute(goal="get")
public class GenerateMojo
extends AbstractI18nMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkBundle
A flag to check that bundles are complete (no missing i18n translations).
|
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.
|
artifactId, bundles, encoding, genSrc, locales, out, project, silent, src, strictMode, verbose| Constructor and Description |
|---|
GenerateMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkSkip() |
protected void |
doAction() |
addGetter, backupFile, checkBundle, checkPackaging, getArtifactId, getBackupFile, getEncoding, getGetterFile, getI18nFile, getProject, init, isSilent, isStrictMode, isVerbose, needGeneration, 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, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFilegetLog, getPluginContext, setLog, setPluginContext@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–2013 CodeLutin. All rights reserved.