Package com.diffplug.spotless
Class GitPrePushHookInstallerMaven
java.lang.Object
com.diffplug.spotless.GitPrePushHookInstaller
com.diffplug.spotless.GitPrePushHookInstallerMaven
Implementation of
GitPrePushHookInstaller
specifically for Maven-based projects.
This class installs a Git pre-push hook that uses Maven to check and apply Spotless formatting.-
Nested Class Summary
Nested classes/interfaces inherited from class com.diffplug.spotless.GitPrePushHookInstaller
GitPrePushHookInstaller.Executor, GitPrePushHookInstaller.GitPreHookLogger
-
Field Summary
Fields inherited from class com.diffplug.spotless.GitPrePushHookInstaller
logger, root
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Provides the content of the hook that should be inserted into the pre-push script.Methods inherited from class com.diffplug.spotless.GitPrePushHookInstaller
install, preHookTemplate
-
Constructor Details
-
GitPrePushHookInstallerMaven
-
-
Method Details
-
preHookContent
Provides the content of the hook that should be inserted into the pre-push script.- Specified by:
preHookContent
in classGitPrePushHookInstaller
- Returns:
- A string representing the content to include in the pre-push script.
-