Class GenerateDefaultTranslationsMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.openhab.core.tools.i18n.plugin.AbstractI18nMojo
org.openhab.core.tools.i18n.plugin.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 Details

    • GenerateDefaultTranslationsMojo

      public GenerateDefaultTranslationsMojo()
  • Method Details

    • execute

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

      protected String generateDefaultTranslations(Path defaultTranslationsPath)