Class MergeBackCsvBundleMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
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
  • Field Details

    • mergeNewKeys

      @Parameter(property="i18n.mergeNewKeys", defaultValue="false") protected boolean mergeNewKeys
      To accept to add new keys in the original i18n bundle. The option is false by 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 File src
      Directory where to find project i18n files.
    • artifactId

      @Parameter(property="i18n.artifactId", defaultValue="${project.artifactId}", readonly=true) protected String artifactId
      Name to use as prefix of generated files. Note : By default, use the artifact id.
    • bundleCsvFile

      @Parameter(property="i18n.bundleCsvFile", required=true) protected File bundleCsvFile
      Location of the csv file to split.
  • Constructor Details

    • MergeBackCsvBundleMojo

      public MergeBackCsvBundleMojo()
  • Method Details

    • doAction

      protected void doAction() throws Exception
      Specified by:
      doAction in class org.nuiton.plugin.AbstractPlugin
      Throws:
      Exception