Package org.tentackle.maven.i18n
Class PullMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.tentackle.maven.AbstractTentackleMojo
-
- org.tentackle.maven.i18n.AbstractI18nMojo
-
- org.tentackle.maven.i18n.PullMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.tentackle.pdo.DomainContextProvider
@Mojo(name="pull", requiresDependencyResolution=COMPILE) public class PullMojo extends AbstractI18nMojoPulls resource bundles from the database backend.- Author:
- harald
-
-
Field Summary
-
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 PullMojo()
-
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
-
-