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

      Constructors 
      Constructor Description
      PushMojo()  
    • 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
    • Field Detail

      • override

        @Parameter
        protected boolean override
        Override database values.
        Default is to leave existing translations unchanged and add only new ones.
    • Constructor Detail

      • PushMojo

        public PushMojo()
    • 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