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

public Interface CompilerAdapter

Known Direct Implementers
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
Imports
org.apache.tools.ant.BuildException, org.apache.tools.ant.taskdefs.Javac

The interface that all compiler adapters must adhere to.

A compiler adapter is an adapter that interprets the javac's parameters in preparation to be passed off to the compiler this adapter represents. As all the necessary values are stored in the Javac task itself, the only thing all adapters need is the javac task, the execute command and a parameterless constructor (for reflection).

Since
Ant 1.3

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

has the compilation been successful
execute
()

Executes the task.

public void
setJavac(Javac
the compiler attributes
attributes
)

Sets the compiler attributes, which are stored in the Javac task.

Method Detail

executeback to summary
public boolean execute() throws BuildException

Executes the task.

Returns:boolean

has the compilation been successful

Exceptions
BuildException:
on error
setJavacback to summary
public void setJavac(Javac attributes)

Sets the compiler attributes, which are stored in the Javac task.

Parameters
attributes:Javac

the compiler attributes