|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJavac
org.aspectj.tools.ant.taskdefs.Ajc2
public class 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| Nested Class Summary | |
|---|---|
static class |
Ajc2.Argfile
A simple class with one member -- file -- that
represents an argument file. |
| Field Summary | |
|---|---|
static java.lang.String |
ADAPTER_CLASS
The name of the adapter we use. |
| Constructor Summary | |
|---|---|
Ajc2()
|
|
| Method Summary | |
|---|---|
Ajc2.Argfile |
createArgfile()
Creates a nested Argfile, add it to the list
argfiles, and returns the new Argfile
instance. |
PatternSet.NameEntry |
createExclude()
Override Javac.createExclude() to set haveExcludes
to true. |
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 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.threadspublic java.lang.Integer getThreads()
threadspublic void setNocomments(boolean nocomments)
-nocomments flag.
nocomments - true turns on the flag.nocommentspublic boolean getNocomments()
-nocomments flag is turned on.
true if the -nocomments flag is on.nocommentspublic void setNosymbols(boolean nosymbols)
-nosymbols flag.
nosymbols - true turns on the flag.nosymbolspublic boolean getNosymbols()
-nosymbols flag is turned on.
true if the -nosymbols flag is on.nosymbolspublic void setPreprocess(boolean preprocess)
-preprocess flag is turned on.
preprocesspublic boolean getPreprocess()
-preprocess flag is turned on.
true if the -preprocess flag is on.preprocesspublic void setWorkingdir(java.io.File workingdir)
workingdir - the new workingdir.workingdirpublic java.io.File getWorkingdir()
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 PatternSet.NameEntry createInclude()
haveIncludes
to true.
org.apache.tools.taskdefs.Javac#createInclude()public PatternSet.NameEntry createExclude()
haveExcludes
to true.
org.apache.tools.taskdefs.Javac#createExclude()public void setIncludes(java.lang.String includes)
haveIncludes
to true.
includes - Comma-separated list of includes.org.apache.tools.taskdefs.Javac#setIncludes(java.lang.String)public void setExcludes(java.lang.String excludes)
haveExcludes
to true.
excludes - Comma-separated list of excludes.org.apache.tools.taskdefs.Javac#setExcludes(java.lang.String)public java.lang.String getAdapterClass()
public final void execute()
throws BuildException
BuildException
public void executeAfterPrepare()
throws BuildException
build.compiler property
to AjcCompiler, then invokes the super.execute() method.
org.apache.tools.ant.BuildException
BuildExceptionorg.apache.tools.ant.taskdefs.Javac#execute()public void prepare()
protected final void useDefaultSrcdir()
protected void scanDir(java.io.File srcDir,
java.io.File destDir,
java.lang.String[] files)
org.apache.tools.ant.taskdefs.Javac#scanDir
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||