Class AbstractAjcMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.aspectj.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[]
    Weave binary aspects from the jars.
    protected File
    The basedir of the project.
    protected org.apache.maven.project.MavenProject
    The maven project.
    protected Module[]
    List of of modules to weave (into target directory).
    protected String[]
    List of of directories with .class files to weave (into target directory).
    protected File
    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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final boolean
     
    void
    setXmlConfigured(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 Details

    • 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 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 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
    • xmlConfigured

      @Parameter protected File xmlConfigured
      Parameter which indicates an XML file containing AspectJ weaving instructions. Assigning this plugin parameter adds the -xmlConfigured option to ajc.
      See Also:
  • Constructor Details

    • AbstractAjcMojo

      public AbstractAjcMojo()
  • Method Details

    • isSkip

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

      public void setXmlConfigured(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.