Package com.cosium.code.format
Class OnPreCommitMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.cosium.code.format.AbstractMavenGitCodeFormatMojo
com.cosium.code.format.AbstractModuleMavenGitCodeFormatMojo
com.cosium.code.format.OnPreCommitMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="on-pre-commit",
defaultPhase=NONE,
threadSafe=true)
public class OnPreCommitMojo
extends AbstractModuleMavenGitCodeFormatMojo
- Author:
- Réda Housni Alaoui
-
Field Summary
Fields inherited from class com.cosium.code.format.AbstractMavenGitCodeFormatMojo
HOOKS_DIRFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.cosium.code.format.AbstractModuleMavenGitCodeFormatMojo
executeMethods inherited from class com.cosium.code.format.AbstractMavenGitCodeFormatMojo
artifactId, collectCodeFormatters, getOrCreateHooksDirectory, gitBaseDir, gitRepository, isExecutionRoot, pomFile, sourceDirs, targetDirMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
OnPreCommitMojo
public OnPreCommitMojo()
-
-
Method Details
-
doExecute
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
doExecutein classAbstractModuleMavenGitCodeFormatMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-