Class GenerateDefaultTranslationsMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @NonNullByDefault
    @Mojo(name="generate-default-translations",
          threadSafe=true)
    public class GenerateDefaultTranslationsMojo
    extends AbstractI18nMojo
    Generates the default translations properties file for a bundle based on the XML files in the OH-INF directory.
    Author:
    Wouter Born - Initial contribution
    • Constructor Detail

      • GenerateDefaultTranslationsMojo

        public GenerateDefaultTranslationsMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • generateDefaultTranslations

        protected String generateDefaultTranslations​(Path defaultTranslationsPath)