org.apache.tools.ant.taskdefs
public class Apt extends Javac
Since: Ant 1.7
| Nested Class Summary | |
|---|---|
| static class | Apt.Option
The nested option element. |
| Field Summary | |
|---|---|
| static String | ERROR_IGNORING_COMPILER_OPTION An warning message when ignoring compiler attribute. |
| static String | ERROR_WRONG_JAVA_VERSION A warning message if used with java < 1.5. |
| static String | EXECUTABLE_NAME The name of the apt tool. |
| static String | WARNING_IGNORING_FORK
exposed for debug messages |
| Constructor Summary | |
|---|---|
| Apt()
Construtor for Apt task.
| |
| Method Summary | |
|---|---|
| Path | createFactoryPath()
Add a path to the factoryPath attribute. |
| Apt.Option | createOption()
Create a nested option. |
| void | execute()
Do the compilation. |
| String | getAptExecutable()
Get the name of the apt executable.
|
| String | getCompiler()
Get the compiler class name. |
| String | getFactory()
Get the factory option for the apt compiler.
|
| Path | getFactoryPath()
Get the factory path attribute.
|
| Vector | getOptions()
Get the options to the compiler.
|
| File | getPreprocessDir()
Get the preprocessdir attribute.
|
| boolean | isCompile()
Get the compile option for the apt compiler.
|
| void | setCompile(boolean compile)
Set the compile option for the apt compiler.
|
| void | setCompiler(String compiler)
Set the compiler.
|
| void | setFactory(String factory)
Set the factory option for the apt compiler.
|
| void | setFactoryPathRef(Reference ref)
Add a reference to a path to the factoryPath attribute. |
| void | setFork(boolean fork)
Set the fork attribute.
|
| void | setPreprocessDir(File preprocessDir)
Set the preprocessdir attribute. |
Returns: a path to be configured.
Returns: an option to be configured.
Throws: BuildException on error.
Returns: the name of the executable.
Returns: the compiler class name.
Returns: the value of the factory option.
Returns: the factory path attribute.
Returns: the options.
Returns: the preprocessdir attribute.
Returns: the value of the compile option.
Parameters: compile if true set the compile option.
Parameters: compiler not used.
Parameters: factory the classname of the factory.
Parameters: ref a reference to a path.
Parameters: fork if false; warn the option is ignored.
Parameters: preprocessDir where to place processor generated source files.