Package org.codehaus.mojo.javacc
Class ToolFacade
- java.lang.Object
-
- org.codehaus.mojo.javacc.ToolFacade
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.plugin.logging.LoglogThe logger used to output diagnostic messages.
-
Constructor Summary
Constructors Constructor Description ToolFacade()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract intexecute()Runs the tool using the previously set parameters.protected org.apache.maven.plugin.logging.LoggetLog()Gets the logger used to output diagnostic messages.protected java.lang.StringgetToolName()Gets the name of the tool.voidrun()Runs the tool using the previously set parameters.voidsetLog(org.apache.maven.plugin.logging.Log logger)Sets the logger used to output diagnostic messages.
-
-
-
Method Detail
-
setLog
public void setLog(org.apache.maven.plugin.logging.Log logger)
Sets the logger used to output diagnostic messages.- Parameters:
logger- The logger used to output diagnostic messages, may benull.
-
getLog
protected org.apache.maven.plugin.logging.Log getLog()
Gets the logger used to output diagnostic messages.- Returns:
- The logger used to output diagnostic messages, never
null.
-
getToolName
protected java.lang.String getToolName()
Gets the name of the tool.- Returns:
- The name of the tool, never
null.
-
run
public void run() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionRuns the tool using the previously set parameters.- Throws:
org.apache.maven.plugin.MojoExecutionException- If the tool could not be invoked.org.apache.maven.plugin.MojoFailureException- If the tool reported a non-zero exit code.
-
execute
protected abstract int execute() throws java.lang.ExceptionRuns the tool using the previously set parameters.- Returns:
- The exit code of the tool, non-zero means failure.
- Throws:
java.lang.Exception- If the tool could not be invoked.
-
-