Class AbstractMavenGitCodeFormatMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.cosium.code.format.AbstractMavenGitCodeFormatMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractModuleMavenGitCodeFormatMojo, InstallHooksMojo
public abstract class AbstractMavenGitCodeFormatMojo
extends org.apache.maven.plugin.AbstractMojo
- Author:
- Réda Housni Alaoui
-
Field Summary
FieldsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
HOOKS_DIR
- See Also:
-
-
Constructor Details
-
AbstractMavenGitCodeFormatMojo
public AbstractMavenGitCodeFormatMojo()
-
-
Method Details
-
gitRepository
protected final org.eclipse.jgit.lib.Repository gitRepository() -
pomFile
-
sourceDirs
-
targetDir
-
artifactId
-
collectCodeFormatters
-
isExecutionRoot
protected final boolean isExecutionRoot() -
getOrCreateHooksDirectory
Get or creates the git hooks directory- Returns:
- The git hooks directory
-
gitBaseDir
-