Package org.codehaus.mojo.aspectj
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[]
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.
-
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
-
-
-
-
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 toajc -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 toajc -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 toajc -aspectpath
option
-
xmlConfigured
@Parameter protected java.io.File xmlConfigured
Parameter which indicates an XML file containing AspectJ weaving instructions. Assigning this plugin parameter adds the-xmlConfigured
option to ajc.
-
-
Method Detail
-
isSkip
protected final boolean isSkip()
- Returns:
true
if execution should be skipped, otherwisefalse
-
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.
-
-