Class AbstractI18nMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.openhab.core.tools.i18n.plugin.AbstractI18nMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
GenerateDefaultTranslationsMojo

@NonNullByDefault public abstract class AbstractI18nMojo extends org.apache.maven.plugin.AbstractMojo
Base class for internationalization mojos using openHAB XML information.
Author:
Wouter Born - Initial contribution
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected BundleInfo
     
    protected File
    The directory containing the bundle openHAB information

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    protected void
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.maven.plugin.Mojo

    execute
  • Field Details

    • ohinfDirectory

      @Parameter(property="i18n.ohinf.dir", defaultValue="${project.basedir}/src/main/resources/OH-INF") @NonNullByDefault({}) protected File ohinfDirectory
      The directory containing the bundle openHAB information
    • bundleInfo

      protected BundleInfo bundleInfo
  • Constructor Details

    • AbstractI18nMojo

      public AbstractI18nMojo()
  • Method Details

    • ohinfExists

      protected boolean ohinfExists()
    • readAddonInfo

      protected void readAddonInfo() throws IOException
      Throws:
      IOException