Class AntCompilerAdapter

  • All Implemented Interfaces:
    org.apache.tools.ant.taskdefs.compilers.CompilerAdapter

    public class AntCompilerAdapter
    extends org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
    A simple CompilerAdapter for the "ant" tool that silently ignores most of the configuration parameters and attempts to compile all given source files into class files.
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter

        attributes, bootclasspath, compileClasspath, compileList, compileSourcepath, debug, depend, deprecation, destDir, encoding, extdirs, includeAntRuntime, includeJavaRuntime, location, lSep, memoryInitialSize, memoryMaximumSize, optimize, project, src, target, verbose
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean execute()
      Compiles all source files in DefaultCompilerAdapter.compileList individually and creates class files in the DefaultCompilerAdapter.destDir.
      • Methods inherited from class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter

        addCurrentCompilerArgs, addExtdirsToClasspath, assumeJava11, assumeJava12, assumeJava13, assumeJava14, assumeJava15, assumeJava16, executeExternalCompile, executeExternalCompile, getBootClassPath, getCompileClasspath, getJavac, getNoDebugArgument, getProject, logAndAddFilesToCompile, setJavac, setupJavacCommand, setupJavacCommand, setupJavacCommandlineSwitches, setupJavacCommandlineSwitches, setupModernJavacCommand, setupModernJavacCommandlineSwitches
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AntCompilerAdapter

        public AntCompilerAdapter()
    • Method Detail

      • execute

        public boolean execute()
        Compiles all source files in DefaultCompilerAdapter.compileList individually and creates class files in the DefaultCompilerAdapter.destDir.

        The following fields of DefaultCompilerAdapter are honored:

        • DefaultCompilerAdapter.compileList - the set of Java source files to compile
        • DefaultCompilerAdapter.destDir - where to store the class files
        • DefaultCompilerAdapter.compileSourcepath - where to look for more Java source files
        • DefaultCompilerAdapter.compileClasspath - where to look for required classes
        • DefaultCompilerAdapter.extdirs
        • DefaultCompilerAdapter.bootclasspath
        • DefaultCompilerAdapter.encoding - how the Java source files are encoded
        • DefaultCompilerAdapter.verbose
        • DefaultCompilerAdapter.debug
        • org.apache.tools.ant.taskdefs.Javac.getDebugLevel()
        • DefaultCompilerAdapter.src

        The following fields of DefaultCompilerAdapter are not honored at this time:

        • DefaultCompilerAdapter.depend
        • DefaultCompilerAdapter.deprecation
        • DefaultCompilerAdapter.includeAntRuntime
        • DefaultCompilerAdapter.includeJavaRuntime
        • DefaultCompilerAdapter.location
        • DefaultCompilerAdapter.optimize
        • DefaultCompilerAdapter.target
        Returns:
        "true" on success