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

public Class Gcj

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

The implementation of the gcj compiler. This is primarily a cut-and-paste from the jikes.
Since
Ant 1.4

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
Gcj()

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the compilation succeeded
execute
()

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

Performs a compile using the gcj compiler.
public boolean

Returns:

true if compilation to native code is requested
isNativeBuild
()

Whether any of the arguments given via <compilerarg> implies that compilation to native code is requested.

protected Commandline

Returns:

the command line
setupGCJCommand
()

Set up the gcj commandline.

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

Field Detail

CONFLICT_WITH_DASH_Cback to summary
private static final String[] CONFLICT_WITH_DASH_C

Constructor Detail

Gcjback to summary
public Gcj()

Method Detail

executeback to summary
public boolean execute() throws BuildException

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

Performs a compile using the gcj compiler.

Returns:boolean

true if the compilation succeeded

Annotations
@Override
Exceptions
BuildException:
on error
isNativeBuildback to summary
public boolean isNativeBuild()

Whether any of the arguments given via <compilerarg> implies that compilation to native code is requested.

Returns:boolean

true if compilation to native code is requested

Since
Ant 1.6.2
setupGCJCommandback to summary
protected Commandline setupGCJCommand()

Set up the gcj commandline.

Returns:Commandline

the command line