Class MergeBackCsvBundleMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.i18n.plugin.AbstractI18nMojo
org.nuiton.i18n.plugin.bundle.csv.AbstractCsvBundleMojo
org.nuiton.i18n.plugin.bundle.csv.MergeBackCsvBundleMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.nuiton.plugin.Plugin,org.nuiton.plugin.PluginWithEncoding
@Mojo(name="merge-back-csv-bundle",
defaultPhase=GENERATE_RESOURCES,
requiresProject=true,
requiresDependencyResolution=RUNTIME)
public class MergeBackCsvBundleMojo
extends AbstractCsvBundleMojo
To merge back from a csv bundle to a module i18n bundle files.
Created on 7/26/14.
- Since:
- 3.3
- Author:
- Tony Chemit - chemit@codelutin.com
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringartifactIdName to use as prefix of generated files.protected java.io.FilebundleCsvFileLocation of the csv file to split.protected booleanmergeNewKeysTo accept to add new keys in the original i18n bundle.protected java.io.FilesrcDirectory where to find project i18n files.Fields inherited from class org.nuiton.i18n.plugin.bundle.csv.AbstractCsvBundleMojo
bundleCsvSeparatorFields inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo
bundles, encoding, locales, mavenSession, project, silent, verbose -
Constructor Summary
Constructors Constructor Description MergeBackCsvBundleMojo() -
Method Summary
Modifier and Type Method Description protected voiddoAction()Methods 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, setPluginContext
-
Field Details
-
mergeNewKeys
@Parameter(property="i18n.mergeNewKeys", defaultValue="false") protected boolean mergeNewKeysTo accept to add new keys in the original i18n bundle. The option isfalseby default, since merging operation should not add any new keys. -
src
@Parameter(property="i18n.src", defaultValue="${project.basedir}/src/main/resources/i18n", required=true) protected java.io.File srcDirectory where to find project i18n files. -
artifactId
@Parameter(property="i18n.artifactId", defaultValue="${project.artifactId}", readonly=true) protected java.lang.String artifactIdName to use as prefix of generated files. Note : By default, use the artifact id. -
bundleCsvFile
@Parameter(property="i18n.bundleCsvFile", required=true) protected java.io.File bundleCsvFileLocation of the csv file to split.
-
-
Constructor Details
-
MergeBackCsvBundleMojo
public MergeBackCsvBundleMojo()
-
-
Method Details
-
doAction
protected void doAction() throws java.lang.Exception- Specified by:
doActionin classorg.nuiton.plugin.AbstractPlugin- Throws:
java.lang.Exception
-