| org.apache.beehive.controls.runtime.generator.AptTask
AptTask | public class AptTask extends Javac (Code) | | The AptTask class defines a custom ANT task for invoking APT-based code generation. It
derives from the built-in task, so all of the attributes and nested elements of that
task are supported, for source list selection, classpath selection, compiler arguments,
etc. Each of these options will be passed onto APT for processing.
AptTask also adds some new attributes:
- gendir - specifies the directory where temporary source files that are produced during
generation will be kept.
- srcExtensions - provides a comma-separated list of source file extensions that are
considered valid input to APT. The default value is "*.java".
-
|
Method Summary | |
public void | execute() | protected void | scanDir(File srcDir, File destDir, String[] files, String ext) | public void | setCompileByExtension(boolean compileByExt) The compileByExtension attribute causes each input source extension to be compiled
independently (and sequentially). | public void | setGendir(File genDir) The gendir attribute specifies the name of the output directory for any files generated
as a result of calling APT. | public void | setNocompile(boolean nocompile) The nocompile attribute disables compilation of the input source file list and any
generated sources that are derived from them. | public void | setProcessorOptions(String processorOptions) The srcExtensions attribute can be set to a comma-separated list of processor options
(of the form option or option= value) to be passed to
APT. | public void | setSrcExtensions(String srcExts) The srcExtensions attribute can be set to a comma-separated list of source filename
extensions that are considered to be valid inputs to APT processing. |
_compileByExt | protected boolean _compileByExt(Code) | | |
_hasSourcepath | protected boolean _hasSourcepath(Code) | | |
_nocompile | protected boolean _nocompile(Code) | | |
execute | public void execute() throws BuildException(Code) | | |
scanDir | protected void scanDir(File srcDir, File destDir, String[] files, String ext)(Code) | | Override the implementation of scanDir, to look for additional files based upon any
specified source extensions
|
setCompileByExtension | public void setCompileByExtension(boolean compileByExt)(Code) | | The compileByExtension attribute causes each input source extension to be compiled
independently (and sequentially). This is useful when one type of extensio can
possibly depend upon the generation output from another. The default value 'false'.
|
setGendir | public void setGendir(File genDir)(Code) | | The gendir attribute specifies the name of the output directory for any files generated
as a result of calling APT.
|
setNocompile | public void setNocompile(boolean nocompile)(Code) | | The nocompile attribute disables compilation of the input source file list and any
generated sources that are derived from them. The default value is 'false'.
|
setProcessorOptions | public void setProcessorOptions(String processorOptions)(Code) | | The srcExtensions attribute can be set to a comma-separated list of processor options
(of the form option or option= value) to be passed to
APT.
|
setSrcExtensions | public void setSrcExtensions(String srcExts)(Code) | | The srcExtensions attribute can be set to a comma-separated list of source filename
extensions that are considered to be valid inputs to APT processing.
The default value is "*.java".
|
|
|