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
Modifier and TypeFieldDescriptionprotected 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected final boolean
isSkip()
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 projectThe maven project. -
basedir
The basedir of the project. -
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
List of of directories with .class files to weave (into target directory). Corresponds toajc -inpath
option.- Since:
- 1.4
-
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 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, otherwisefalse
-
setXmlConfigured
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.
-