@Mojo(name="merge-back-csv-bundle",
defaultPhase=GENERATE_RESOURCES,
requiresProject=true,
requiresDependencyResolution=RUNTIME)
public class MergeBackCsvBundleMojo
extends AbstractCsvBundleMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
artifactId
Name to use as prefix of generated files.
|
protected File |
bundleCsvFile
Location of the csv file to split.
|
protected boolean |
mergeNewKeys
To accept to add new keys in the original i18n bundle.
|
protected File |
src
Directory where to find project i18n files.
|
bundleCsvSeparatorbundles, encoding, locales, mavenSession, project, silent, verbose| Constructor and Description |
|---|
MergeBackCsvBundleMojo() |
| 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.mergeNewKeys",
defaultValue="false")
protected boolean mergeNewKeys
false by default, since merging operation should not add any new keys.@Parameter(property="i18n.src",
defaultValue="${project.basedir}/src/main/resources/i18n",
required=true)
protected File src
@Parameter(property="i18n.artifactId",
defaultValue="${project.artifactId}",
readonly=true)
protected String artifactId
@Parameter(property="i18n.bundleCsvFile",
required=true)
protected File bundleCsvFile
Copyright © 2007–2016 CodeLutin. All rights reserved.