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

public Class Jikes

extends DefaultCompilerAdapter
Class Inheritance
Imports
org.apache.tools.ant.BuildException, .Project, org.apache.tools.ant.types.Commandline, .Path

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

Field Summary

Inherited from org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter:
attributesbootclasspathcompileClasspathcompileListcompileSourcepathdebugdependdeprecationdestDirencodingextdirsincludeAntRuntimeincludeJavaRuntimelocationlSepmemoryInitialSizememoryMaximumSizemodulepathmoduleSourcepathoptimizeprojectreleasesrctargetupgrademodulepathverbose

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
public boolean

Returns:

true if the compilation succeeded
execute
()

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

Performs a compile using the Jikes compiler from IBM.
Inherited from org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter:
addCurrentCompilerArgsaddExtdirsToClasspathassumeJava10PlusassumeJava11assumeJava12assumeJava13assumeJava14assumeJava15assumeJava16assumeJava17assumeJava18assumeJava19assumeJava1_1PlusassumeJava1_2PlusassumeJava1_3PlusassumeJava1_4PlusassumeJava1_5PlusassumeJava1_6PlusassumeJava1_7PlusassumeJava1_8PlusassumeJava9assumeJava9PlusexecuteExternalCompileexecuteExternalCompilegetBootClassPathgetCompileClasspathgetJavacgetModulepathgetModulesourcepathgetNoDebugArgumentgetProjectgetSupportedFileExtensionsgetUpgrademodulepathlogAndAddFilesToCompilesetJavacsetupJavacCommandsetupJavacCommandsetupJavacCommandlineSwitchessetupJavacCommandlineSwitchessetupModernJavacCommandsetupModernJavacCommandlineSwitches

Constructor Detail

Jikesback to summary
public Jikes()

Method Detail

addPropertyParamsback to summary
private void addPropertyParams(Commandline cmd)
executeback to summary
public boolean execute() throws BuildException

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

Performs a compile using the Jikes compiler from IBM. Mostly of this code is identical to doClassicCompile() However, it does not support all options like extdirs, deprecation and so on, because there is no option in jikes and I don't understand what they should do. It has been successfully tested with jikes >1.10.

Returns:boolean

true if the compilation succeeded

Annotations
@Override
Exceptions
BuildException:
on error