|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.aspectj.AbstractAjcMojo
org.codehaus.mojo.aspectj.AbstractAjcCompiler
public abstract class AbstractAjcCompiler
Base class for the two aspectJ compiletime weaving mojos.
Field Summary | |
---|---|
protected java.util.List |
ajcOptions
Holder for ajc compiler options |
protected java.lang.String |
ajdtBuildDefFile
Where to find the ajdt build definition file. |
protected java.lang.String |
argumentFileName
The filename to store build configuration in. |
protected java.lang.String |
aspectDirectory
The source directory for the aspects |
protected Module[] |
aspectLibraries
Weave binary aspects from the jars. |
protected java.lang.String |
bootclasspath
Override location of VM's bootclasspath for purposes of evaluating types when compiling. |
protected java.lang.String |
complianceLevel
Specify compiler compliance setting (1.3 to 1.5) default is 1.4 |
protected boolean |
deprecation
Toggle warningmessages on deprecations |
protected boolean |
emacssym
Generate .ajesym symbol files for emacs support |
protected java.lang.String |
encoding
Specify default source encoding format. |
protected java.lang.String[] |
excludes
List of ant-style patterns used to specify the aspects that should be excluded when compiling. |
protected java.lang.String[] |
includes
List of ant-style patterns used to specify the aspects that should be included when compiling. |
protected boolean |
noImportError
Emit no errors for unresolved imports; |
protected boolean |
outxml
Generate aop.xml file for load-time weaving with default name.(/META-INF/aop.xml) |
protected java.lang.String |
outxmlfile
Generate aop.xml file for load-time weaving with custom name. |
protected boolean |
preserveAllLocals
Preserve all local variables during code generation (to facilitate debugging). |
protected boolean |
proceedOnError
Keep compiling after error, dumping class files with problem methods |
protected boolean |
referenceInfo
Compute reference information. |
protected int |
repeat
Repeat compilation process N times (typically to do performance analysis). |
protected java.util.Set |
resolvedIncludes
Holds all files found using the includes, excludes parameters. |
protected boolean |
showWeaveInfo
Emit messages about weaving |
protected java.lang.String |
source
Toggle assertions (1.3, 1.4, or 1.5 - default is 1.4). |
protected java.lang.String |
target
Specify classfile target setting (1.1 to 1.5) default is 1.2 |
protected java.lang.String |
testAspectDirectory
The source directory for the test aspects |
protected boolean |
verbose
Emit messages about accessed/processed compilation units |
protected java.lang.String |
warn
Emit warnings for any instances of the comma-delimited list of questionable code (eg 'unusedLocals,deprecation'): see http://www.eclipse.org/aspectj/doc/released/devguide/ajc-ref.html#ajc for available settings |
protected Module[] |
weaveDependencies
List of of modules to weave (into target directory). |
protected boolean |
XaddSerialVersionUID
Causes the compiler to calculate and add the SerialVersionUID field to any type implementing Serializable that is affected by an aspect. |
protected java.lang.String |
Xlint
Set default level for messages about potential programming mistakes in crosscutting code. |
protected boolean |
XnoInline
(Experimental) do not inline around advice |
protected boolean |
Xreweavable
(Experimental) runs weaver in reweavable mode which causes it to create woven classes that can be rewoven, subject to the restriction that on attempting a reweave all the types that advised the woven type must be accessible. |
protected boolean |
XserializableAspects
(Experimental) Normally it is an error to declare aspects Serializable. |
Fields inherited from class org.codehaus.mojo.aspectj.AbstractAjcMojo |
---|
basedir, project |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractAjcCompiler()
|
Method Summary | |
---|---|
protected void |
assembleArguments()
Assembles a complete ajc compiler arguments list. |
void |
execute()
Do the AspectJ compiling. |
protected abstract java.lang.String |
getAdditionalAspectPaths()
Abstract method used by cild classes to specify aditional aspect paths. |
protected abstract java.util.List |
getOutputDirectories()
Abstract method used by child classes to spesify the correct output directory for compiled classes. |
protected abstract java.util.List |
getSourceDirectories()
Abstract method used by child classes to spesify the correct source directory for classes. |
protected boolean |
isBuildNeeded()
Checks modifications that would make us need a build |
void |
setArgumentFileName(java.lang.String argumentFileName)
|
void |
setBootClassPath(java.lang.String bootclasspath)
|
void |
setComplianceLevel(java.lang.String complianceLevel)
Setters which when called sets compiler arguments |
void |
setDeprecation(boolean deprecation)
|
void |
setEmacssym(boolean emacssym)
|
void |
setEncoding(java.lang.String encoding)
|
void |
setNoImportError(boolean noImportError)
|
void |
setOutxml(boolean outxml)
|
void |
setOutxmlfile(java.lang.String outxmlfile)
|
void |
setPreserveAllLocals(boolean preserveAllLocals)
|
void |
setProceedOnError(boolean proceedOnError)
|
void |
setReferenceInfo(boolean referenceInfo)
|
void |
setRepeat(int repeat)
|
void |
setShowWeaveInfo(boolean showWeaveInfo)
|
void |
setSource(java.lang.String source)
|
void |
setTarget(java.lang.String target)
|
void |
setVerbose(boolean verbose)
|
void |
setWarn(java.lang.String warn)
|
void |
setXaddSerialVersionUID(boolean xaddSerialVersionUID)
|
void |
setXlint(java.lang.String xlint)
|
void |
setXnoInline(boolean xnoInline)
|
void |
setXreweavable(boolean xreweavable)
|
void |
setXserializableAspects(boolean xserializableAspects)
|
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 |
---|
protected java.lang.String aspectDirectory
protected java.lang.String testAspectDirectory
protected java.lang.String[] includes
protected java.lang.String[] excludes
protected java.lang.String ajdtBuildDefFile
protected Module[] weaveDependencies
protected Module[] aspectLibraries
protected boolean outxml
protected java.lang.String outxmlfile
protected boolean emacssym
protected java.lang.String Xlint
protected java.lang.String target
protected java.lang.String source
protected java.lang.String complianceLevel
protected boolean deprecation
protected boolean noImportError
protected boolean proceedOnError
protected boolean preserveAllLocals
protected boolean referenceInfo
protected java.lang.String encoding
protected boolean verbose
protected boolean showWeaveInfo
protected int repeat
protected boolean Xreweavable
protected boolean XnoInline
protected boolean XserializableAspects
protected boolean XaddSerialVersionUID
protected java.lang.String bootclasspath
protected java.lang.String warn
protected java.lang.String argumentFileName
protected java.util.List ajcOptions
protected java.util.Set resolvedIncludes
Constructor Detail |
---|
public AbstractAjcCompiler()
Method Detail |
---|
protected abstract java.util.List getOutputDirectories()
protected abstract java.util.List getSourceDirectories()
protected abstract java.lang.String getAdditionalAspectPaths()
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void assembleArguments() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- error in configurationprotected boolean isBuildNeeded() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void setComplianceLevel(java.lang.String complianceLevel)
public void setDeprecation(boolean deprecation)
public void setEmacssym(boolean emacssym)
public void setEncoding(java.lang.String encoding)
public void setNoImportError(boolean noImportError)
public void setOutxml(boolean outxml)
public void setOutxmlfile(java.lang.String outxmlfile)
public void setPreserveAllLocals(boolean preserveAllLocals)
public void setProceedOnError(boolean proceedOnError)
public void setReferenceInfo(boolean referenceInfo)
public void setRepeat(int repeat)
public void setShowWeaveInfo(boolean showWeaveInfo)
public void setTarget(java.lang.String target)
public void setSource(java.lang.String source)
public void setVerbose(boolean verbose)
public void setXlint(java.lang.String xlint)
public void setXnoInline(boolean xnoInline)
public void setXreweavable(boolean xreweavable)
public void setXserializableAspects(boolean xserializableAspects)
public void setXaddSerialVersionUID(boolean xaddSerialVersionUID)
public void setBootClassPath(java.lang.String bootclasspath)
public void setWarn(java.lang.String warn)
public void setArgumentFileName(java.lang.String argumentFileName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |