Class 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 AbstractI18nMojo
    Pulls resource bundles from the database backend.
    Author:
    harald
    • Constructor Summary

      Constructors 
      Constructor Description
      PullMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void processBundle​(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.AbstractTentackleMojo

        determineEncoding, determineVerbosity, findResourceDirs, getCanonicalPath, getPathRelativeToBasedir, getResourceDirName
      • 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.tentackle.pdo.DomainContextProvider

        on, op
    • Constructor Detail

      • PullMojo

        public PullMojo()
    • 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: AbstractI18nMojo
        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.
        Specified by:
        processBundle in class AbstractI18nMojo
        Parameters:
        classLoader - the project classloader
        bundleName - the original bundle class name
        locale - the locale, null if default
        resourceName - the bundle resource name without leading slash