Class CacheMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="cache",
          defaultPhase=NONE,
          threadSafe=true,
          requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
    public class CacheMojo
    extends org.apache.maven.plugin.AbstractMojo
    A Maven Mojo to call the Loader on all classes found in the project, as well as call all cachePackage() methods found on them. It displays to the standard output the directories cached, the former on a line starting with "PATH=" and the latter on another line starting with "PACKAGEPATH=".
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String classOrPackageName
      Process only this class or package (suffixed with .* or .**).
      (package private) java.lang.String[] classOrPackageNames
      Process only these classes or packages (suffixed with .* or .**).
      (package private) org.apache.maven.plugin.descriptor.PluginDescriptor plugin  
      (package private) org.apache.maven.project.MavenProject project  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      (package private) java.lang.String join​(java.lang.String separator, java.lang.Iterable<java.lang.String> strings)  
      • 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
    • Field Detail

      • classOrPackageName

        @Parameter(property="javacpp.classOrPackageName")
        java.lang.String classOrPackageName
        Process only this class or package (suffixed with .* or .**).
      • classOrPackageNames

        @Parameter(property="javacpp.classOrPackageNames")
        java.lang.String[] classOrPackageNames
        Process only these classes or packages (suffixed with .* or .**).
      • project

        @Parameter(defaultValue="${project}",
                   required=true,
                   readonly=true)
        org.apache.maven.project.MavenProject project
      • plugin

        @Parameter(defaultValue="${plugin}",
                   required=true,
                   readonly=true)
        org.apache.maven.plugin.descriptor.PluginDescriptor plugin
    • Constructor Detail

      • CacheMojo

        public CacheMojo()
    • Method Detail

      • join

        java.lang.String join​(java.lang.String separator,
                              java.lang.Iterable<java.lang.String> strings)
      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException