public abstract class AbstractPrecommitMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected File |
installDirectory
The base directory for installing the binary into
|
protected File |
workingDirectory
The base directory for running all Node commands.
|
| Constructor and Description |
|---|
AbstractPrecommitMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected abstract void |
execute(PluginFactory pluginFactory)
Implemented by children to define an execution
|
protected abstract boolean |
skipExecution()
Implemented by children to determine if this execution should be skipped.
|
@Parameter(defaultValue="${basedir}",
property="workingDirectory")
protected File workingDirectory
@Parameter(defaultValue="${basedir}/precommit_files",
property="installDirectory")
protected File installDirectory
protected abstract void execute(PluginFactory pluginFactory) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected abstract boolean skipExecution()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2018. All rights reserved.