org.codehaus.mojo.aspectj
Class AjcTestCompileMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.aspectj.AbstractAjcMojo
          extended by org.codehaus.mojo.aspectj.AbstractAjcCompiler
              extended by org.codehaus.mojo.aspectj.AjcTestCompileMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class AjcTestCompileMojo
extends AbstractAjcCompiler

Weaves all test classes.

Author:
Kaare Nilsen
Is bound to the specified phase of the standard build lifecycle:
test-compile
Requires the dependencies in this specified scope:
test
Is defined by the goal name:
test-compile

Field Summary
protected  boolean weaveMainSourceFolder
          Flag to indicate if the main source dirs should be a part of the compile process.
protected  boolean weaveWithAspectsInMainSourceFolder
          Flag to indicate if aspects in the the main source dirs should be a part of the compile process
 
Fields inherited from class org.codehaus.mojo.aspectj.AbstractAjcCompiler
ajcOptions, ajdtBuildDefFile, argumentFileName, aspectDirectory, bootclasspath, complianceLevel, deprecation, emacssym, encoding, excludes, forceAjcCompile, includes, noImportError, outxml, outxmlfile, preserveAllLocals, proceedOnError, referenceInfo, repeat, resolvedIncludes, showWeaveInfo, source, target, testAspectDirectory, verbose, warn, XaddSerialVersionUID, XhasMember, Xlint, XnoInline, Xreweavable, XserializableAspects, XterminateAfterCompilation
 
Fields inherited from class org.codehaus.mojo.aspectj.AbstractAjcMojo
aspectLibraries, basedir, project, weaveDependencies, weaveDirectories
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AjcTestCompileMojo()
           
 
Method Summary
protected  String getAdditionalAspectPaths()
          Abstract method used by child classes to specify additional aspect paths.
protected  List getClasspathDirectories()
          Abstract method used by child classes to specify the correct output directory for compiled classes.
protected  org.codehaus.plexus.util.Scanner[] getJavaSources()
           
protected  File getOutputDirectory()
          The directory where compiled classes go.
protected  List getSourceDirectories()
          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, setDeprecation, setEmacssym, setEncoding, setNoImportError, setOutxml, setOutxmlfile, setPreserveAllLocals, setProceedOnError, setReferenceInfo, setRepeat, setShowWeaveInfo, setSource, setTarget, setVerbose, setWarn, setXaddSerialVersionUID, setXhasMember, setXlint, setXnoInline, setXreweavable, setXserializableAspects, setXterminateAfterCompilation
 
Methods inherited from class org.codehaus.mojo.aspectj.AbstractAjcMojo
isSkip
 
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
 

Field Detail

weaveMainSourceFolder

protected boolean weaveMainSourceFolder
Flag to indicate if the main source dirs should be a part of the compile process. Note this will make all classes in main source dir appare in the test output dir also, potentially overwriting test resources.

Is defined by:
default-value:
false

weaveWithAspectsInMainSourceFolder

protected boolean weaveWithAspectsInMainSourceFolder
Flag to indicate if aspects in the the main source dirs should be a part of the compile process

Is defined by:
default-value:
true
Constructor Detail

AjcTestCompileMojo

public AjcTestCompileMojo()
Method Detail

getClasspathDirectories

protected List 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 class AbstractAjcCompiler
Returns:
the directories containing compiled classes.

getOutputDirectory

protected File getOutputDirectory()
Description copied from class: AbstractAjcCompiler
The directory where compiled classes go.

Specified by:
getOutputDirectory in class AbstractAjcCompiler
Returns:
the outputDirectory

getSourceDirectories

protected List getSourceDirectories()
Description copied from class: AbstractAjcCompiler
Abstract method used by child classes to specify the correct source directory for classes.

Specified by:
getSourceDirectories in class AbstractAjcCompiler
Returns:
where sources may be found.

getJavaSources

protected org.codehaus.plexus.util.Scanner[] getJavaSources()
Specified by:
getJavaSources in class AbstractAjcCompiler

getAdditionalAspectPaths

protected String getAdditionalAspectPaths()
Description copied from class: AbstractAjcCompiler
Abstract method used by child classes to specify additional aspect paths.

Specified by:
getAdditionalAspectPaths in class AbstractAjcCompiler
Returns:
the additional aspect paths


Copyright © 2005-2012 Codehaus. All Rights Reserved.