Class AntCompilerAdapter

DefaultCompilerAdapter
org.codehaus.janino.AntCompilerAdapter

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compile all source files in DefaultCompilerAdapter.compileList individually and write class files in directory DefaultCompilerAdapter.destDir.
  • Constructor Details

    • AntCompilerAdapter

      public AntCompilerAdapter()
  • Method Details

    • execute

      public boolean execute()
      Compile all source files in DefaultCompilerAdapter.compileList individually and write class files in directory DefaultCompilerAdapter.destDir.

      The following fields of

      invalid reference
      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
      invalid reference
      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