@Mojo(name="split-csv-bundle",
defaultPhase=GENERATE_RESOURCES,
requiresProject=true,
requiresDependencyResolution=RUNTIME)
public class SplitCsvBundleMojo
extends AbstractCsvBundleMojo
AbstractI18nMojo.locales.
The order of AbstractI18nMojo.locales will be used to extract for each locale i18n bundle (means the order defined
in the csv file is not used). Make sure to use exactly the same order.
Created on 7/26/14.| 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 File |
bundleOutputDir
Root directory where to generate aggregated bundles (this directory will
be added as resources of the project).
|
protected String |
bundleOutputName
Name of the bundle to generate.
|
bundleCsvSeparatorbundles, encoding, locales, mavenSession, project, silent, verbose| Constructor and Description |
|---|
SplitCsvBundleMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAction() |
void |
init() |
backupFile, checkBundle, checkPackaging, failsIfAnyKeyMissingInBundle, failsIfAnyKeyMissingValue, getBackupFile, getEncoding, getProject, 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.bundleOutputName",
defaultValue="${project.artifactId}-i18n",
required=true)
protected String bundleOutputName
@Parameter(property="i18n.bundleOutputDir",
defaultValue="${project.build.directory}",
required=true)
protected File bundleOutputDir
@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.