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 Klassen
    Modifizierer und Typ
    Klasse
    Beschreibung
    static class 
    A 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

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final String
    The name of the adapter we use.

    Von Klasse geerbte Felder org.apache.tools.ant.taskdefs.Javac

    compileList, failOnError, listFiles

    Von Klasse geerbte Felder org.apache.tools.ant.taskdefs.MatchingTask

    fileset

    Von Klasse geerbte Felder org.apache.tools.ant.Task

    description, location, taskName, taskType, wrapper

    Von Klasse geerbte Felder org.apache.tools.ant.ProjectComponent

    project
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Creates a nested Argfile, add it to the list argfiles, and returns the new Argfile instance.
    org.apache.tools.ant.types.PatternSet.NameEntry
    Override Javac.createExclude() to set haveExcludes to true.
    org.apache.tools.ant.types.PatternSet.NameEntry
    Override Javac.createInclude() to set haveIncludes to true.
    final void
     
    void
    Executes by first setting the build.compiler property to AjcCompiler, then invokes the super.execute() method.
     
    Returns the java.util.List of argfiles.
    boolean
    Returns if the -nocomments flag is turned on.
    boolean
    Returns if the -nosymbols flag is turned on.
    boolean
    Returns if the -preprocess flag is turned on.
    Returns the number of threads.
    Returns the current workingdir.
    protected boolean
    Whether we have used the excludes attribute.
    protected boolean
    Whether we have used the includes attribute.
    void
    Guaranteed to be called before doing real execute.
    protected void
    scanDir(File srcDir, File destDir, String[] files)
    Overrides Javac.scanDir(..) so that it doesn't check dependencies.
    void
    setArgfiles(String argfiles)
    Sets the the argument files by the comma-delimited String passed in.
    void
    setExcludes(String excludes)
    Override Javac.setExcludes(String) to set haveExcludes to true.
    void
    setIncludes(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)
    Set the -preprocess flag.
    void
    Sets the number of threads.
    void
    setWorkingdir(File workingdir)
    Sets the workingdir.
    protected final void
     

    Von 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, setVerbose

    Von 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, XsetItems

    Von 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, setTaskType

    Von Klasse geerbte Methoden org.apache.tools.ant.ProjectComponent

    getProject

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

  • Konstruktordetails

    • Ajc2

      public Ajc2()
  • Methodendetails

    • hasExcludes

      protected boolean hasExcludes()
      Whether we have used the excludes attribute.
      Gibt zurück:
      Whether we have used the excludes attribute.
    • hasIncludes

      protected boolean hasIncludes()
      Whether we have used the includes attribute.
      Gibt zurück:
      Whether we have used the includes attribute.
    • setThreads

      public void setThreads(Integer threads)
      Sets the number of threads.
      Parameter:
      threads - the number of threads.
      Siehe auch:
      • threads
    • getThreads

      public Integer getThreads()
      Returns the number of threads.
      Gibt zurück:
      the number of threads.
      Siehe auch:
      • threads
    • setNocomments

      public void setNocomments(boolean nocomments)
      Set the -nocomments flag.
      Parameter:
      nocomments - true turns on the flag.
      Siehe auch:
      • nocomments
    • getNocomments

      public boolean getNocomments()
      Returns if the -nocomments flag is turned on.
      Gibt zurück:
      true if the -nocomments flag is on.
      Siehe auch:
      • nocomments
    • setNosymbols

      public void setNosymbols(boolean nosymbols)
      Set the -nosymbols flag.
      Parameter:
      nosymbols - true turns on the flag.
      Siehe auch:
      • nosymbols
    • getNosymbols

      public boolean getNosymbols()
      Returns if the -nosymbols flag is turned on.
      Gibt zurück:
      true if the -nosymbols flag is on.
      Siehe auch:
      • nosymbols
    • setPreprocess

      public void setPreprocess(boolean preprocess)
      Set the -preprocess flag.
      Parameter:
      preprocess - true turns on the -preprocess flag.
      Siehe auch:
      • preprocess
    • getPreprocess

      public boolean getPreprocess()
      Returns if the -preprocess flag is turned on.
      Gibt zurück:
      true if the -preprocess flag is on.
      Siehe auch:
      • preprocess
    • setWorkingdir

      public void setWorkingdir(File workingdir)
      Sets the workingdir.
      Parameter:
      workingdir - the new workingdir.
      Siehe auch:
      • workingdir
    • getWorkingdir

      public File getWorkingdir()
      Returns the current workingdir.
      Gibt zurück:
      the current workingdir.
      Siehe auch:
      • workingdir
    • setArgfiles

      public void setArgfiles(String argfiles)
      Sets the the argument files by the comma-delimited String passed in.
      Parameter:
      argfiles - comma-delimited String contained argument files.
    • createArgfile

      public Ajc2.Argfile createArgfile()
      Creates a nested Argfile, add it to the list argfiles, and returns the new Argfile instance.
      Gibt zurück:
      a new Argfile instance.
    • getArgfiles

      public List getArgfiles()
      Returns the java.util.List of argfiles. This could be null.
      Gibt zurück:
      the list of argfiles.
    • createInclude

      public org.apache.tools.ant.types.PatternSet.NameEntry createInclude()
      Override Javac.createInclude() to set haveIncludes to true.
      Setzt außer Kraft:
      createInclude in Klasse org.apache.tools.ant.taskdefs.MatchingTask
      Gibt zurück:
      new PatternSet.NameEntry to be added to the include list.
      Siehe auch:
      • MatchingTask.createInclude()
    • createExclude

      public org.apache.tools.ant.types.PatternSet.NameEntry createExclude()
      Override Javac.createExclude() to set haveExcludes to true.
      Setzt außer Kraft:
      createExclude in Klasse org.apache.tools.ant.taskdefs.MatchingTask
      Gibt zurück:
      new PatternSet.NameEntry to be added to the exclude list.
      Siehe auch:
      • MatchingTask.createExclude()
    • setIncludes

      public void setIncludes(String includes)
      Override Javac.setIncludes(String) to set haveIncludes to true.
      Setzt außer Kraft:
      setIncludes in Klasse org.apache.tools.ant.taskdefs.MatchingTask
      Parameter:
      includes - Comma-separated list of includes.
      Siehe auch:
      • MatchingTask.setIncludes(java.lang.String)
    • setExcludes

      public void setExcludes(String excludes)
      Override Javac.setExcludes(String) to set haveExcludes to true.
      Setzt außer Kraft:
      setExcludes in Klasse org.apache.tools.ant.taskdefs.MatchingTask
      Parameter:
      excludes - Comma-separated list of excludes.
      Siehe auch:
      • MatchingTask.setExcludes(java.lang.String)
    • getAdapterClass

      public String getAdapterClass()
    • execute

      public final void execute() throws org.apache.tools.ant.BuildException
      Setzt außer Kraft:
      execute in Klasse org.apache.tools.ant.taskdefs.Javac
      Löst aus:
      org.apache.tools.ant.BuildException
    • executeAfterPrepare

      public void executeAfterPrepare() throws org.apache.tools.ant.BuildException
      Executes by first setting the build.compiler property to AjcCompiler, then invokes the super.execute() method.
      Löst aus:
      org.apache.tools.ant.BuildException
      Siehe auch:
      • Javac.execute()
    • prepare

      public void prepare()
      Guaranteed to be called before doing real execute.
    • useDefaultSrcdir

      protected final void useDefaultSrcdir()
    • scanDir

      protected void scanDir(File srcDir, File destDir, String[] files)
      Overrides Javac.scanDir(..) so that it doesn't check dependencies.
      Setzt außer Kraft:
      scanDir in Klasse org.apache.tools.ant.taskdefs.Javac
      Siehe auch:
      • Javac.scanDir(java.io.File, java.io.File, java.lang.String[])