org.apache.tools.ant.taskdefs.compilers

Class Gcj

Implemented Interfaces:
CompilerAdapter

public class Gcj
extends DefaultCompilerAdapter

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

Field Summary

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()
Performs a compile using the gcj compiler.
boolean
isNativeBuild()
Whether any of the arguments given via <compilerarg> implies that compilation to native code is requested.
protected Commandline
setupGCJCommand()
Set up the gcj commandline.

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

Method Details

execute

public boolean execute()
            throws BuildException
Performs a compile using the gcj compiler.
Specified by:
execute in interface CompilerAdapter
Returns:
true if the compilation succeeded
Throws:
BuildException - on error

isNativeBuild

public boolean isNativeBuild()
Whether any of the arguments given via <compilerarg> implies that compilation to native code is requested.
Returns:
true if compilation to native code is requested
Since:
Ant 1.6.2

setupGCJCommand

protected Commandline setupGCJCommand()
Set up the gcj commandline.
Returns:
the command line