org.codehaus.mojo.javacc
public abstract class AbstractPreprocessorMojo extends AbstractMojo
Version: $Id: AbstractPreprocessorMojo.java 6353 2008-02-27 22:14:08Z bentmann $
Method Summary | |
---|---|
protected void | addCompileSourceRoot()
Registers the configured output directory as a compile source root for the current project. |
protected void | createTimestamp(GrammarInfo grammarInfo)
Creates the timestamp file for the specified grammar file.
|
void | execute()
Execute the tool.
|
protected abstract String[] | getExcludes()
Gets a set of Ant-like exclusion patterns used to unselect files from the source directory for processing.
|
protected abstract String[] | getIncludes()
Gets a set of Ant-like inclusion patterns used to select files from the source directory for processing.
|
protected abstract File | getOutputDirectory()
Gets the absolute path to the directory where the generated Java files for the parser will be stored.
|
protected abstract File | getSourceDirectory()
Gets the absolute path to the directory where the grammar files are located.
|
protected abstract int | getStaleMillis()
Gets the granularity in milliseconds of the last modification date for testing whether a source needs
recompilation.
|
protected abstract File | getTimestampDirectory()
Gets the absolute path to the directory where the processed input files will be stored for later detection of
stale sources.
|
protected abstract void | processGrammar(GrammarInfo grammarInfo)
Passes the specified grammar file through the tool.
|
Parameters: grammarInfo The grammar info describing the grammar file to process, must not be null
.
Throws: MojoExecutionException If the invocation of the tool failed. MojoFailureException If the tool reported a non-zero exit code.
Returns: A set of Ant-like inclusion patterns used to unselect files from the source directory for processing, can
be null
if no files should be excluded.
Returns: A set of Ant-like inclusion patterns used to select files from the source directory for processing, can
be null
if all files should be included.
Returns: The absolute path to the directory where the generated Java files for the parser will be stored, never
null
.
Returns: The absolute path to the directory where the grammar files are located, never null
.
Returns: The granularity in milliseconds of the last modification date for testing whether a source needs recompilation.
Returns: The absolute path to the directory where the processed input files will be stored for later detection of
stale sources, never null
.
Parameters: grammarInfo The grammar info describing the grammar file to process, must not be null
.
Throws: MojoExecutionException If the invocation of the tool failed. MojoFailureException If the tool reported a non-zero exit code.