Package org.aspectj.tools.ant.taskdefs
Klasse Ajc2
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
- Alle implementierten Schnittstellen:
org.apache.tools.ant.types.selectors.SelectorContainer
public class Ajc2
extends org.apache.tools.ant.taskdefs.Javac
Ant task for the AspectJ compiler -- AJC.
List (.lst) files are passed in as includes.
This task was developed by the AspectJ Project
- Autor:
- Jeffrey Palm
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classA simple class with one member --file-- that represents an argument file.Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.apache.tools.ant.taskdefs.Javac
org.apache.tools.ant.taskdefs.Javac.ImplementationSpecificArgument -
Feldübersicht
FelderVon Klasse geerbte Felder org.apache.tools.ant.taskdefs.Javac
compileList, failOnError, listFilesVon Klasse geerbte Felder org.apache.tools.ant.taskdefs.MatchingTask
filesetVon Klasse geerbte Felder org.apache.tools.ant.Task
description, location, taskName, taskType, wrapperVon Klasse geerbte Felder org.apache.tools.ant.ProjectComponent
project -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCreates a nestedArgfile, add it to the listargfiles, and returns the newArgfileinstance.org.apache.tools.ant.types.PatternSet.NameEntryOverride Javac.createExclude() to sethaveExcludestotrue.org.apache.tools.ant.types.PatternSet.NameEntryOverride Javac.createInclude() to sethaveIncludestotrue.final voidexecute()voidExecutes by first setting thebuild.compilerproperty to AjcCompiler, then invokes the super.execute() method.Returns the java.util.List of argfiles.booleanReturns if the-nocommentsflag is turned on.booleanReturns if the-nosymbolsflag is turned on.booleanReturns if the-preprocessflag is turned on.Returns the number of threads.Returns the current workingdir.protected booleanWhether we have used theexcludesattribute.protected booleanWhether we have used theincludesattribute.voidprepare()Guaranteed to be called before doing real execute.protected voidOverrides Javac.scanDir(..) so that it doesn't check dependencies.voidsetArgfiles(String argfiles) Sets the the argument files by the comma-delimited String passed in.voidsetExcludes(String excludes) Override Javac.setExcludes(String) to sethaveExcludestotrue.voidsetIncludes(String includes) Override Javac.setIncludes(String) to sethaveIncludestotrue.voidsetNocomments(boolean nocomments) Set the-nocommentsflag.voidsetNosymbols(boolean nosymbols) Set the-nosymbolsflag.voidsetPreprocess(boolean preprocess) Set the-preprocessflag.voidsetThreads(Integer threads) Sets the number of threads.voidsetWorkingdir(File workingdir) Sets the workingdir.protected final voidVon Klasse geerbte Methoden 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, getExecutable, getExtdirs, getFailonerror, getFileList, getIncludeantruntime, getIncludejavaruntime, getJavacExecutable, getListfiles, getMemoryInitialSize, getMemoryMaximumSize, getNowarn, getOptimize, getSource, getSourcepath, getSrcdir, getSystemJavac, getTarget, getTempdir, 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, setTempdir, setVerboseVon Klasse geerbte Methoden org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExcludesFile, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludesfile, setFollowSymlinks, setIncludesfile, setProject, XsetIgnore, XsetItemsVon Klasse geerbte Methoden org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeVon Klasse geerbte Methoden org.apache.tools.ant.ProjectComponent
getProject
-
Felddetails
-
ADAPTER_CLASS
The name of the adapter we use.- Siehe auch:
-
-
Konstruktordetails
-
Ajc2
public Ajc2()
-
-
Methodendetails
-
hasExcludes
protected boolean hasExcludes()Whether we have used theexcludesattribute.- Gibt zurück:
- Whether we have used the
excludesattribute.
-
hasIncludes
protected boolean hasIncludes()Whether we have used theincludesattribute.- Gibt zurück:
- Whether we have used the
includesattribute.
-
setThreads
Sets the number of threads.- Parameter:
threads- the number of threads.- Siehe auch:
-
getThreads
Returns the number of threads.- Gibt zurück:
- the number of threads.
- Siehe auch:
-
setNocomments
public void setNocomments(boolean nocomments) Set the-nocommentsflag.- Parameter:
nocomments- true turns on the flag.- Siehe auch:
-
getNocomments
public boolean getNocomments()Returns if the-nocommentsflag is turned on.- Gibt zurück:
trueif the-nocommentsflag is on.- Siehe auch:
-
setNosymbols
public void setNosymbols(boolean nosymbols) Set the-nosymbolsflag.- Parameter:
nosymbols- true turns on the flag.- Siehe auch:
-
getNosymbols
public boolean getNosymbols()Returns if the-nosymbolsflag is turned on.- Gibt zurück:
trueif the-nosymbolsflag is on.- Siehe auch:
-
setPreprocess
public void setPreprocess(boolean preprocess) Set the-preprocessflag.- Parameter:
preprocess-trueturns on the-preprocessflag.- Siehe auch:
-
getPreprocess
public boolean getPreprocess()Returns if the-preprocessflag is turned on.- Gibt zurück:
trueif the-preprocessflag is on.- Siehe auch:
-
setWorkingdir
Sets the workingdir.- Parameter:
workingdir- the new workingdir.- Siehe auch:
-
getWorkingdir
Returns the current workingdir.- Gibt zurück:
- the current workingdir.
- Siehe auch:
-
setArgfiles
Sets the the argument files by the comma-delimited String passed in.- Parameter:
argfiles- comma-delimited String contained argument files.
-
createArgfile
Creates a nestedArgfile, add it to the listargfiles, and returns the newArgfileinstance.- Gibt zurück:
- a new
Argfileinstance.
-
getArgfiles
Returns the java.util.List of argfiles. This could benull.- Gibt zurück:
- the list of argfiles.
-
createInclude
public org.apache.tools.ant.types.PatternSet.NameEntry createInclude()Override Javac.createInclude() to sethaveIncludestotrue.- Setzt außer Kraft:
createIncludein Klasseorg.apache.tools.ant.taskdefs.MatchingTask- Gibt zurück:
- new PatternSet.NameEntry to be added to the include list.
- Siehe auch:
-
createExclude
public org.apache.tools.ant.types.PatternSet.NameEntry createExclude()Override Javac.createExclude() to sethaveExcludestotrue.- Setzt außer Kraft:
createExcludein Klasseorg.apache.tools.ant.taskdefs.MatchingTask- Gibt zurück:
- new PatternSet.NameEntry to be added to the exclude list.
- Siehe auch:
-
setIncludes
Override Javac.setIncludes(String) to sethaveIncludestotrue.- Setzt außer Kraft:
setIncludesin Klasseorg.apache.tools.ant.taskdefs.MatchingTask- Parameter:
includes- Comma-separated list of includes.- Siehe auch:
-
setExcludes
Override Javac.setExcludes(String) to sethaveExcludestotrue.- Setzt außer Kraft:
setExcludesin Klasseorg.apache.tools.ant.taskdefs.MatchingTask- Parameter:
excludes- Comma-separated list of excludes.- Siehe auch:
-
getAdapterClass
-
execute
public final void execute() throws org.apache.tools.ant.BuildException- Setzt außer Kraft:
executein Klasseorg.apache.tools.ant.taskdefs.Javac- Löst aus:
org.apache.tools.ant.BuildException
-
executeAfterPrepare
public void executeAfterPrepare() throws org.apache.tools.ant.BuildExceptionExecutes by first setting thebuild.compilerproperty to AjcCompiler, then invokes the super.execute() method.- Löst aus:
org.apache.tools.ant.BuildException- Siehe auch:
-
prepare
public void prepare()Guaranteed to be called before doing real execute. -
useDefaultSrcdir
protected final void useDefaultSrcdir() -
scanDir
Overrides Javac.scanDir(..) so that it doesn't check dependencies.- Setzt außer Kraft:
scanDirin Klasseorg.apache.tools.ant.taskdefs.Javac- Siehe auch:
-