Package org.codehaus.mojo.aspectj
Class AjcCompileMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.aspectj.AbstractAjcMojo
org.codehaus.mojo.aspectj.AbstractAjcCompiler
org.codehaus.mojo.aspectj.AjcCompileMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="compile",
defaultPhase=COMPILE,
requiresDependencyResolution=COMPILE,
threadSafe=true)
public class AjcCompileMojo
extends AbstractAjcCompiler
Weaves all main classes.
AspectJ Compiler Plugin.
- Author:
- Kaare Nilsen
-
Field Summary
Fields inherited from class org.codehaus.mojo.aspectj.AbstractAjcCompiler
additionalCompilerArgs, ajcOptions, ajdtBuildDefFile, argumentFileName, aspectDirectory, bootclasspath, complianceLevel, crossrefs, deprecation, emacssym, encoding, excludes, forceAjcCompile, includes, noImportError, outxml, outxmlfile, parameters, preserveAllLocals, proc, proceedOnError, referenceInfo, repeat, resolvedIncludes, showWeaveInfo, source, target, testAspectDirectory, verbose, warn, XaddSerialVersionUID, Xajruntimetarget, XAJRUNTIMETARGET_SUPPORTED_VALUES, XhasMember, Xjoinpoints, Xlint, Xlintfile, XnoInline, XnotReweavable, Xreweavable, XserializableAspects, Xset, XterminateAfterCompilation
Fields inherited from class org.codehaus.mojo.aspectj.AbstractAjcMojo
aspectLibraries, basedir, project, weaveDependencies, weaveDirectories, xmlConfigured
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Abstract method used by child classes to specify additional aspect paths.Abstract method used by child classes to specify the correct output directory for compiled classes.protected File
The directory for sources generated by annotation processing.protected org.codehaus.plexus.util.Scanner[]
protected File
The directory where compiled classes go.Abstract method used by child classes to specify the correct source directory for classes.Methods inherited from class org.codehaus.mojo.aspectj.AbstractAjcCompiler
assembleArguments, execute, getIncludedSources, isBuildNeeded, setArgumentFileName, setBootClassPath, setComplianceLevel, setCrossrefs, setDeprecation, setEmacssym, setEncoding, setNoImportError, setOutxml, setOutxmlfile, setParameters, setPreserveAllLocals, setProceedOnError, setReferenceInfo, setRepeat, setShowWeaveInfo, setSource, setTarget, setVerbose, setWarn, setXaddSerialVersionUID, setXajruntimetarget, setXhasMember, setXjoinpoints, setXlint, setXlintfile, setXnoInline, setXnotReweavable, setXreweavable, setXserializableAspects, setXset, setXterminateAfterCompilation
Methods inherited from class org.codehaus.mojo.aspectj.AbstractAjcMojo
isSkip, setXmlConfigured
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AjcCompileMojo
public AjcCompileMojo()
-
-
Method Details
-
getOutputDirectory
Description copied from class:AbstractAjcCompiler
The directory where compiled classes go.- Specified by:
getOutputDirectory
in classAbstractAjcCompiler
- Returns:
- the outputDirectory
-
getGeneratedSourcesDirectory
Description copied from class:AbstractAjcCompiler
The directory for sources generated by annotation processing.- Specified by:
getGeneratedSourcesDirectory
in classAbstractAjcCompiler
- Returns:
- the generatedSourcesDirectory
-
getClasspathDirectories
Description copied from class:AbstractAjcCompiler
Abstract method used by child classes to specify the correct output directory for compiled classes.- Specified by:
getClasspathDirectories
in classAbstractAjcCompiler
- Returns:
- All directories matching
project.getBuild().getOutputDirectory()
.
-
getSourceDirectories
Description copied from class:AbstractAjcCompiler
Abstract method used by child classes to specify the correct source directory for classes.- Specified by:
getSourceDirectories
in classAbstractAjcCompiler
- Returns:
- All directories matching
project.getCompileSourceRoots()
.
-
getJavaSources
protected org.codehaus.plexus.util.Scanner[] getJavaSources()- Specified by:
getJavaSources
in classAbstractAjcCompiler
-
getAdditionalAspectPaths
Description copied from class:AbstractAjcCompiler
Abstract method used by child classes to specify additional aspect paths.- Specified by:
getAdditionalAspectPaths
in classAbstractAjcCompiler
- Returns:
- the additional aspect paths
-