org.apache.tools.ant.taskdefs.compilers

Class Javac12

Implemented Interfaces:
CompilerAdapter

public class Javac12
extends DefaultCompilerAdapter

The implementation of the javac compiler for JDK 1.2 This is primarily a cut-and-paste from the original javac task before it was refactored.
Since:
Ant 1.3

Field Summary

protected static String
CLASSIC_COMPILER_CLASSNAME

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

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

Method Summary

boolean
execute()
Run the compilation.

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

Field Details

CLASSIC_COMPILER_CLASSNAME

protected static final String CLASSIC_COMPILER_CLASSNAME

Method Details

execute

public boolean execute()
            throws BuildException
Run the compilation.
Specified by:
execute in interface CompilerAdapter
Returns:
true if the compiler ran with a zero exit result (ok)
Throws:
BuildException - if the compilation has problems.