Skip to content

Commit 3b2ef5b

Browse files
jdileonardoJulian Di Leonardo
andauthored
Adding 'gcf.skipInstallHooks' to disable hook install (#63)
Co-authored-by: Julian Di Leonardo <jdileonardo@blackberry.com>
1 parent f9e009d commit 3b2ef5b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/cosium/code/format/InstallHooksMojo.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ public class InstallHooksMojo extends AbstractMavenGitCodeFormatMojo {
4646
@Parameter(property = "gcf.skip", defaultValue = "false")
4747
private boolean skip;
4848

49+
/** Skip execution of this specific goal */
50+
@Parameter(property = "gcf.skipInstallHooks", defaultValue = "false")
51+
private boolean skipInstallHooks;
52+
4953
/**
5054
* True to truncate hooks base scripts before each install. <br>
5155
* Do not use this option if any other system or human manipulate the hooks
@@ -75,7 +79,7 @@ public void execute() throws MojoExecutionException {
7579
getLog().debug("Not in execution root. Do not execute.");
7680
return;
7781
}
78-
if (skip) {
82+
if (skip || skipInstallHooks) {
7983
Log log = getLog();
8084
if (log.isInfoEnabled()) {
8185
log.info("skipped");

0 commit comments

Comments
 (0)