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
-
Field Summary
Fields inherited from class org.openhab.core.tools.i18n.plugin.AbstractI18nMojo
bundleInfo, ohinfDirectory
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
protected String
generateDefaultTranslations
(Path defaultTranslationsPath) Methods inherited from class org.openhab.core.tools.i18n.plugin.AbstractI18nMojo
ohinfExists, readAddonInfo
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
GenerateDefaultTranslationsMojo
public GenerateDefaultTranslationsMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-
generateDefaultTranslations
-