Package org.tentackle.maven.i18n
Class PushMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.tentackle.maven.AbstractTentackleMojo
-
- org.tentackle.maven.i18n.AbstractI18nMojo
-
- org.tentackle.maven.i18n.PushMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.tentackle.pdo.DomainContextProvider
@Mojo(name="push", requiresDependencyResolution=COMPILE) public class PushMojo extends AbstractI18nMojoPush resource bundles to the database backend.- Author:
- harald
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanoverrideOverride database values.
Default is to leave existing translations unchanged and add only new ones.-
Fields inherited from class org.tentackle.maven.i18n.AbstractI18nMojo
bundleCount, classpathElements, context, errors, locales, localeSuffixes, password, updates, url, user, warnings
-
-
Constructor Summary
Constructors Constructor Description PushMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessBundle(java.lang.ClassLoader classLoader, java.lang.String bundleName, java.lang.String locale, java.lang.String resourceName)Process the given bundle resource name.
The resource name must not start with a leading slash because this method directly uses the classloader's getResourceAsStream method.-
Methods inherited from class org.tentackle.maven.i18n.AbstractI18nMojo
execute, getDomainContext, validate
-
Methods inherited from class org.tentackle.maven.AbstractTentackleMojo
determineEncoding, determineVerbosity, findResourceDirs, getCanonicalPath, getPathRelativeToBasedir, getResourceDirName
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
processBundle
public void processBundle(java.lang.ClassLoader classLoader, java.lang.String bundleName, java.lang.String locale, java.lang.String resourceName)Description copied from class:AbstractI18nMojoProcess the given bundle resource name.
The resource name must not start with a leading slash because this method directly uses the classloader's getResourceAsStream method.- Specified by:
processBundlein classAbstractI18nMojo- Parameters:
classLoader- the project classloaderbundleName- the original bundle class namelocale- the locale, null if defaultresourceName- the bundle resource name without leading slash
-
-