Package org.nuiton.i18n.plugin
Class CheckBundlesIntegrityMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.i18n.plugin.AbstractI18nMojo
org.nuiton.i18n.plugin.AbstractI18nGenerateMojo
org.nuiton.i18n.plugin.CheckBundlesIntegrityMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.nuiton.plugin.Plugin,org.nuiton.plugin.PluginWithEncoding
@Mojo(name="check-bundles-integrity",
defaultPhase=PREPARE_PACKAGE)
public class CheckBundlesIntegrityMojo
extends AbstractI18nGenerateMojo
Check bundles integrity. That all keys have a value in all bundles.
- Since:
- 3.5
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanA flag to make the build fails if there is some warnings while generating bundle, says when it misses some translations.protected booleanA flag to show empty i18n translation.protected booleanA flag to show missing i18n translation.protected FileDirectory where to find project i18n files.Fields inherited from class org.nuiton.i18n.plugin.AbstractI18nGenerateMojo
artifactId, outFields inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo
bundles, encoding, locales, mavenSession, project, silent, verboseFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.nuiton.i18n.plugin.AbstractI18nGenerateMojo
addGetter, getGetterFile, needGenerationMethods inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo
backupFile, checkBundle, checkPackaging, failsIfAnyKeyMissingInBundle, failsIfAnyKeyMissingValue, getBackupFile, getEncoding, getProject, init, isSilent, isVerbose, setEncoding, setProject, setVerboseMethods inherited from class org.nuiton.plugin.AbstractPlugin
acceptPackaging, 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, writeFileMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute, getLog, setLog
-
Field Details
-
src
@Parameter(property="i18n.src", defaultValue="${basedir}/src/main/resources/i18n", required=true) protected File srcDirectory where to find project i18n files. -
showEmpty
@Parameter(property="i18n.showEmpty", defaultValue="false", required=true) protected boolean showEmptyA flag to show empty i18n translation. Note : Need theAbstractI18nMojo.checkBundle(java.util.Locale, java.util.Properties, boolean, org.nuiton.i18n.plugin.bundle.BundleValidation)to be activated).- Since:
- 1.0.0
-
showMissing
@Parameter(property="i18n.showMissing", defaultValue="false", required=true) protected boolean showMissingA flag to show missing i18n translation.- Since:
- 3.5
-
failsIfWarning
@Parameter(property="i18n.failsIfWarning", defaultValue="false") protected boolean failsIfWarningA flag to make the build fails if there is some warnings while generating bundle, says when it misses some translations. Note : This parameter should be used in a release profile to ensure bundles are complete.- Since:
- 2.0
-
-
Constructor Details
-
CheckBundlesIntegrityMojo
public CheckBundlesIntegrityMojo()
-
-
Method Details
-
doAction
- Specified by:
doActionin classorg.nuiton.plugin.AbstractPlugin- Throws:
Exception
-