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:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class AjcTestCompileMojo
extends AbstractAjcCompiler

Weaves all test classes.

Author:
Kaare Nilsen

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, aspectLibraries, bootclasspath, complianceLevel, deprecation, emacssym, encoding, excludes, includes, noImportError, outxml, outxmlfile, preserveAllLocals, proceedOnError, referenceInfo, repeat, resolvedIncludes, showWeaveInfo, source, target, testAspectDirectory, verbose, warn, weaveDependencies, XaddSerialVersionUID, Xlint, XnoInline, Xreweavable, XserializableAspects
 
Fields inherited from class org.codehaus.mojo.aspectj.AbstractAjcMojo
basedir, project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AjcTestCompileMojo()
           
 
Method Summary
protected  java.lang.String getAdditionalAspectPaths()
          Abstract method used by cild classes to specify aditional aspect paths.
protected  java.util.List getOutputDirectories()
          Abstract method used by child classes to spesify the correct output directory for compiled classes.
protected  java.util.List getSourceDirectories()
          Abstract method used by child classes to spesify the correct source directory for classes.
 
Methods inherited from class org.codehaus.mojo.aspectj.AbstractAjcCompiler
assembleArguments, execute, isBuildNeeded, setArgumentFileName, setBootClassPath, setComplianceLevel, setDeprecation, setEmacssym, setEncoding, setNoImportError, setOutxml, setOutxmlfile, setPreserveAllLocals, setProceedOnError, setReferenceInfo, setRepeat, setShowWeaveInfo, setSource, setTarget, setVerbose, setWarn, setXaddSerialVersionUID, setXlint, setXnoInline, setXreweavable, setXserializableAspects
 
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.


weaveWithAspectsInMainSourceFolder

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

Constructor Detail

AjcTestCompileMojo

public AjcTestCompileMojo()
Method Detail

getOutputDirectories

protected java.util.List getOutputDirectories()
Description copied from class: AbstractAjcCompiler
Abstract method used by child classes to spesify the correct output directory for compiled classes.

Specified by:
getOutputDirectories in class AbstractAjcCompiler
Returns:
where compiled classes should be put.

getSourceDirectories

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

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

getAdditionalAspectPaths

protected java.lang.String getAdditionalAspectPaths()
Description copied from class: AbstractAjcCompiler
Abstract method used by cild classes to specify aditional aspect paths.

Specified by:
getAdditionalAspectPaths in class AbstractAjcCompiler
Returns:


Copyright © 2005-2010. All Rights Reserved.