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
Modifier and TypeFieldDescriptionprotected BundleInfo
protected File
The directory containing the bundle openHAB informationFields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
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 ohinfDirectoryThe directory containing the bundle openHAB information -
bundleInfo
-
-
Constructor Details
-
AbstractI18nMojo
public AbstractI18nMojo()
-
-
Method Details
-
ohinfExists
protected boolean ohinfExists() -
readAddonInfo
- Throws:
IOException
-