Package com.cosium.code.format
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.AbstractMojoCreated on 01/11/17.- Author:
- Reda.Housni-Alaoui
-
-
Constructor Summary
Constructors Constructor Description AbstractMavenGitCodeFormatMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringartifactId()protected CodeFormatterscodeFormatters()protected PathgetOrCreateHooksDirectory()Get or creates the git hooks directoryprotected PathgitBaseDir()protected org.eclipse.jgit.lib.RepositorygitRepository()protected booleanisExecutionRoot()protected PathpomFile()protected List<Path>sourceDirs()protected PathtargetDir()-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
HOOKS_DIR
protected static final String HOOKS_DIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
gitRepository
protected final org.eclipse.jgit.lib.Repository gitRepository()
-
pomFile
protected final Path pomFile()
-
targetDir
protected final Path targetDir()
-
artifactId
protected final String artifactId()
-
codeFormatters
protected final CodeFormatters codeFormatters()
-
isExecutionRoot
protected final boolean isExecutionRoot()
-
getOrCreateHooksDirectory
protected final Path getOrCreateHooksDirectory()
Get or creates the git hooks directory- Returns:
- The git hooks directory
-
gitBaseDir
protected final Path gitBaseDir()
-
-