Class AbstractAjcMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    AbstractAjcCompiler, EclipseAjcMojo

    public abstract class AbstractAjcMojo
    extends org.apache.maven.plugin.AbstractMojo
    The base class.
    Author:
    Juraj Burian
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Module[] aspectLibraries
      Weave binary aspects from the jars.
      protected java.io.File basedir
      The basedir of the project.
      protected org.apache.maven.project.MavenProject project
      The maven project.
      protected Module[] weaveDependencies
      List of of modules to weave (into target directory).
      protected java.lang.String[] weaveDirectories
      List of of directories with .class files to weave (into target directory).
      protected java.io.File xmlConfigured
      Parameter which indicates an XML file containing AspectJ weaving instructions.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractAjcMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isSkip()  
      void setXmlConfigured​(java.io.File xmlConfigured)
      Parameter which indicates an XML file containing AspectJ weaving instructions.
      • 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.apache.maven.plugin.Mojo

        execute
    • Field Detail

      • project

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

        @Parameter(required=true,
                   readonly=true,
                   defaultValue="${basedir}")
        protected java.io.File basedir
        The basedir of the project.
      • weaveDependencies

        @Parameter
        protected Module[] weaveDependencies
        List of of modules to weave (into target directory). Corresponds to ajc -inpath option (or -injars for pre-1.2 (which is not supported)).
      • weaveDirectories

        @Parameter
        protected java.lang.String[] weaveDirectories
        List of of directories with .class files to weave (into target directory). Corresponds to ajc -inpath option.
        Since:
        1.4
      • aspectLibraries

        @Parameter
        protected Module[] aspectLibraries
        Weave binary aspects from the jars. The aspects should have been output by the same version of the compiler. The modules must also be dependencies of the project. Corresponds to ajc -aspectpath option
    • Constructor Detail

      • AbstractAjcMojo

        public AbstractAjcMojo()
    • Method Detail

      • isSkip

        protected final boolean isSkip()
        Returns:
        true if execution should be skipped, otherwise false
      • setXmlConfigured

        public void setXmlConfigured​(java.io.File xmlConfigured)
        Parameter which indicates an XML file containing AspectJ weaving instructions. Assigning this plugin parameter adds the -xmlConfigured option to ajc.
        Parameters:
        xmlConfigured - an XML file containing AspectJ weaving instructions.