|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.MatchingTask
|
+--org.apache.tools.ant.taskdefs.Javac
|
+--org.aspectj.tools.ant.taskdefs.Ajc2
Ant task for the AspectJ compiler -- AJC. List (.lst) files are passed in as includes. This task was developed by the AspectJ Project
org.aspectj.tools.ant.taskdefs.compilers.AjcCompiler| Inner Class Summary | |
static class |
Ajc2.Argfile
A simple class with one member -- file -- that
represents an argument file. |
| Inner classes inherited from class org.apache.tools.ant.taskdefs.Javac |
org.apache.tools.ant.taskdefs.Javac.ImplementationSpecificArgument |
| Field Summary | |
static java.lang.String |
ADAPTER_CLASS
The name of the adapter we use. |
| Fields inherited from class org.apache.tools.ant.taskdefs.Javac |
compileList, failOnError, listFiles |
| Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset, useDefaultExcludes |
| Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
| Constructor Summary | |
Ajc2()
|
|
| Method Summary | |
Ajc2.Argfile |
createArgfile()
Creates a nested Argfile, add it to the list
argfiles, and returns the new Argfile
instance. |
org.apache.tools.ant.types.PatternSet.NameEntry |
createExclude()
Override Javac.createExclude() to set haveExcludes
to true. |
org.apache.tools.ant.types.PatternSet.NameEntry |
createInclude()
Override Javac.createInclude() to set haveIncludes
to true. |
void |
execute()
|
void |
executeAfterPrepare()
Executes by first setting the build.compiler property
to AjcCompiler, then invokes the super.execute() method. |
java.lang.String |
getAdapterClass()
|
java.util.List |
getArgfiles()
Returns the java.util.List of argfiles. |
boolean |
getNocomments()
Returns if the -nocomments flag is turned on. |
boolean |
getNosymbols()
Returns if the -nosymbols flag is turned on. |
boolean |
getPreprocess()
Returns if the -preprocess flag is turned on. |
java.lang.Integer |
getThreads()
Returns the number of threads. |
java.io.File |
getWorkingdir()
Returns the current workingdir. |
protected boolean |
hasExcludes()
Whether we have used the excludes attribute. |
protected boolean |
hasIncludes()
Whether we have used the includes attribute. |
void |
prepare()
Guaranteed to be called before doing real execute. |
protected void |
scanDir(java.io.File srcDir,
java.io.File destDir,
java.lang.String[] files)
Overrides Javac.scanDir(..) so that it doesn't check dependencies. |
void |
setArgfiles(java.lang.String argfiles)
Sets the the argument files by the comma-delimited String passed in. |
void |
setExcludes(java.lang.String excludes)
Override Javac.setExcludes(String) to set haveExcludes
to true. |
void |
setIncludes(java.lang.String includes)
Override Javac.setIncludes(String) to set haveIncludes
to true. |
void |
setNocomments(boolean nocomments)
Set the -nocomments flag. |
void |
setNosymbols(boolean nosymbols)
Set the -nosymbols flag. |
void |
setPreprocess(boolean preprocess)
Returns if the -preprocess flag is turned on. |
void |
setThreads(java.lang.Integer threads)
Sets the number of threads. |
void |
setWorkingdir(java.io.File workingdir)
Sets the workingdir. |
protected void |
useDefaultSrcdir()
|
| Methods inherited from class org.apache.tools.ant.taskdefs.Javac |
checkParameters, compile, createBootclasspath, createClasspath, createCompilerArg, createExtdirs, createSourcepath, createSrc, getBootclasspath, getClasspath, getCompiler, getCompilerVersion, getCurrentCompilerArgs, getDebug, getDebugLevel, getDepend, getDeprecation, getDestdir, getEncoding, getExtdirs, getFailonerror, getFileList, getIncludeantruntime, getIncludejavaruntime, getJavacExecutable, getListfiles, getMemoryInitialSize, getMemoryMaximumSize, getNowarn, getOptimize, getSource, getSourcepath, getSrcdir, getSystemJavac, getTarget, getVerbose, isForkedJavac, isJdkCompiler, recreateSrc, resetFileLists, setBootclasspath, setBootClasspathRef, setClasspath, setClasspathRef, setCompiler, setDebug, setDebugLevel, setDepend, setDeprecation, setDestdir, setEncoding, setExecutable, setExtdirs, setFailonerror, setFork, setIncludeantruntime, setIncludejavaruntime, setListfiles, setMemoryInitialSize, setMemoryMaximumSize, setNowarn, setOptimize, setProceed, setSource, setSourcepath, setSourcepathRef, setSrcdir, setTarget, setVerbose |
| Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
addAnd, addContains, addCustom, addDate, addDepend, addDepth, addFilename, addMajority, addNone, addNot, addOr, addPresent, addSelector, addSize, appendSelector, createExcludesFile, createIncludesFile, createPatternSet, getDirectoryScanner, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludesfile, setFollowSymlinks, setIncludesfile, setProject, XsetIgnore, XsetItems |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ADAPTER_CLASS
| Constructor Detail |
public Ajc2()
| Method Detail |
protected boolean hasExcludes()
excludes attribute.excludes attribute.protected boolean hasIncludes()
includes attribute.includes attribute.public void setThreads(java.lang.Integer threads)
threads - the number of threads.Ajc2#threadspublic java.lang.Integer getThreads()
Ajc2#threadspublic void setNocomments(boolean nocomments)
-nocomments flag.nocomments - true turns on the flag.Ajc2#nocommentspublic boolean getNocomments()
-nocomments flag is turned on.true if the -nocomments flag is on.Ajc2#nocommentspublic void setNosymbols(boolean nosymbols)
-nosymbols flag.nosymbols - true turns on the flag.Ajc2#nosymbolspublic boolean getNosymbols()
-nosymbols flag is turned on.true if the -nosymbols flag is on.Ajc2#nosymbolspublic void setPreprocess(boolean preprocess)
-preprocess flag is turned on.true if the -preprocess flag is on.Ajc2#preprocesspublic boolean getPreprocess()
-preprocess flag is turned on.true if the -preprocess flag is on.Ajc2#preprocesspublic void setWorkingdir(java.io.File workingdir)
workingdir - the new workingdir.Ajc2#workingdirpublic java.io.File getWorkingdir()
Ajc2#workingdirpublic void setArgfiles(java.lang.String argfiles)
argfiles - comma-delimited String contained argument files.public Ajc2.Argfile createArgfile()
Argfile, add it to the list
argfiles, and returns the new Argfile
instance.Argfile instance.public java.util.List getArgfiles()
null.public org.apache.tools.ant.types.PatternSet.NameEntry createInclude()
haveIncludes
to true.createInclude in class org.apache.tools.ant.taskdefs.MatchingTaskorg.apache.tools.taskdefs.Javac#createInclude()public org.apache.tools.ant.types.PatternSet.NameEntry createExclude()
haveExcludes
to true.createExclude in class org.apache.tools.ant.taskdefs.MatchingTaskorg.apache.tools.taskdefs.Javac#createExclude()public void setIncludes(java.lang.String includes)
haveIncludes
to true.setIncludes in class org.apache.tools.ant.taskdefs.MatchingTaskincludes - Comma-separated list of includes.org.apache.tools.taskdefs.Javac#setIncludes(java.lang.String)public void setExcludes(java.lang.String excludes)
haveExcludes
to true.setExcludes in class org.apache.tools.ant.taskdefs.MatchingTaskexcludes - Comma-separated list of excludes.org.apache.tools.taskdefs.Javac#setExcludes(java.lang.String)public java.lang.String getAdapterClass()
public final void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.taskdefs.Javac
public void executeAfterPrepare()
throws org.apache.tools.ant.BuildException
build.compiler property
to AjcCompiler, then invokes the super.execute() method.org.apache.tools.ant.BuildException - Javac.execute()public void prepare()
protected final void useDefaultSrcdir()
protected void scanDir(java.io.File srcDir,
java.io.File destDir,
java.lang.String[] files)
scanDir in class org.apache.tools.ant.taskdefs.JavacJavac.scanDir(java.io.File, java.io.File, java.lang.String[])
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||