public abstract class AbstractPreprocessorMojo
extends org.apache.maven.plugin.AbstractMojo
Constructor and Description |
---|
AbstractPreprocessorMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCompileSourceRoot()
Registers the configured output directory as a compile source root for the current project.
|
protected void |
createTimestamp(org.codehaus.mojo.javacc.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(org.codehaus.mojo.javacc.GrammarInfo grammarInfo)
Passes the specified grammar file through the tool.
|
protected abstract File getSourceDirectory()
null
.protected abstract String[] getIncludes()
null
if all files should be included.protected abstract String[] getExcludes()
null
if no files should be excluded.protected abstract File getOutputDirectory()
null
.protected abstract File getTimestampDirectory()
null
.protected abstract int getStaleMillis()
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
- If the invocation of the tool failed.org.apache.maven.plugin.MojoFailureException
- If the tool reported a non-zero exit code.protected abstract void processGrammar(org.codehaus.mojo.javacc.GrammarInfo grammarInfo) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
grammarInfo
- The grammar info describing the grammar file to process, must not be null
.org.apache.maven.plugin.MojoExecutionException
- If the invocation of the tool failed.org.apache.maven.plugin.MojoFailureException
- If the tool reported a non-zero exit code.protected void createTimestamp(org.codehaus.mojo.javacc.GrammarInfo grammarInfo)
grammarInfo
- The grammar info describing the grammar file to process, must not be null
.protected void addCompileSourceRoot()
Copyright © 2005–2014 Codehaus. All rights reserved.