Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.compilers

public Class Javac12

extends DefaultCompilerAdapter
Class Inheritance
Annotations
@Deprecated
Imports
java.io.OutputStream, java.lang.reflect.Constructor, .Method, org.apache.tools.ant.BuildException, .Project, org.apache.tools.ant.taskdefs.LogOutputStream, org.apache.tools.ant.types.Commandline, org.apache.tools.ant.util.JavaEnvUtils

Deprecated

Use Javac13 instead.

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

Modifier and TypeField and Description
protected static final String
Inherited from org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter:
attributesbootclasspathcompileClasspathcompileListcompileSourcepathdebugdependdeprecationdestDirencodingextdirsincludeAntRuntimeincludeJavaRuntimelocationlSepmemoryInitialSizememoryMaximumSizemodulepathmoduleSourcepathoptimizeprojectreleasesrctargetupgrademodulepathverbose

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the compiler ran with a zero exit result (ok)
execute
()

Implements org.apache.tools.ant.taskdefs.compilers.CompilerAdapter.execute.

Run the compilation.
Inherited from org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter:
addCurrentCompilerArgsaddExtdirsToClasspathassumeJava10PlusassumeJava11assumeJava12assumeJava13assumeJava14assumeJava15assumeJava16assumeJava17assumeJava18assumeJava19assumeJava1_1PlusassumeJava1_2PlusassumeJava1_3PlusassumeJava1_4PlusassumeJava1_5PlusassumeJava1_6PlusassumeJava1_7PlusassumeJava1_8PlusassumeJava9assumeJava9PlusexecuteExternalCompileexecuteExternalCompilegetBootClassPathgetCompileClasspathgetJavacgetModulepathgetModulesourcepathgetNoDebugArgumentgetProjectgetSupportedFileExtensionsgetUpgrademodulepathlogAndAddFilesToCompilesetJavacsetupJavacCommandsetupJavacCommandsetupJavacCommandlineSwitchessetupJavacCommandlineSwitchessetupModernJavacCommandsetupModernJavacCommandlineSwitches

Field Detail

CLASSIC_COMPILER_CLASSNAMEback to summary
protected static final String CLASSIC_COMPILER_CLASSNAME

Constructor Detail

Javac12back to summary
public Javac12()

Method Detail

executeback to summary
public boolean execute() throws BuildException

Implements org.apache.tools.ant.taskdefs.compilers.CompilerAdapter.execute.

Run the compilation.

Returns:boolean

true if the compiler ran with a zero exit result (ok)

Exceptions
BuildException:
if the compilation has problems.