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, XterminateAfterCompilationFields inherited from class org.codehaus.mojo.aspectj.AbstractAjcMojo
aspectLibraries, basedir, project, weaveDependencies, weaveDirectories, xmlConfiguredFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringAbstract 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 FileThe directory for sources generated by annotation processing.protected org.codehaus.plexus.util.Scanner[]protected FileThe 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, setXterminateAfterCompilationMethods inherited from class org.codehaus.mojo.aspectj.AbstractAjcMojo
isSkip, setXmlConfiguredMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AjcCompileMojo
public AjcCompileMojo()
-
-
Method Details
-
getOutputDirectory
Description copied from class:AbstractAjcCompilerThe directory where compiled classes go.- Specified by:
getOutputDirectoryin classAbstractAjcCompiler- Returns:
- the outputDirectory
-
getGeneratedSourcesDirectory
Description copied from class:AbstractAjcCompilerThe directory for sources generated by annotation processing.- Specified by:
getGeneratedSourcesDirectoryin classAbstractAjcCompiler- Returns:
- the generatedSourcesDirectory
-
getClasspathDirectories
Description copied from class:AbstractAjcCompilerAbstract method used by child classes to specify the correct output directory for compiled classes.- Specified by:
getClasspathDirectoriesin classAbstractAjcCompiler- Returns:
- All directories matching
project.getBuild().getOutputDirectory().
-
getSourceDirectories
Description copied from class:AbstractAjcCompilerAbstract method used by child classes to specify the correct source directory for classes.- Specified by:
getSourceDirectoriesin classAbstractAjcCompiler- Returns:
- All directories matching
project.getCompileSourceRoots().
-
getJavaSources
protected org.codehaus.plexus.util.Scanner[] getJavaSources()- Specified by:
getJavaSourcesin classAbstractAjcCompiler
-
getAdditionalAspectPaths
Description copied from class:AbstractAjcCompilerAbstract method used by child classes to specify additional aspect paths.- Specified by:
getAdditionalAspectPathsin classAbstractAjcCompiler- Returns:
- the additional aspect paths
-