Skip to content

Commit 31b23b0

Browse files
authored
Add 'gcf.' prefix to property keys. Closes #37 (#40)
1 parent b6724ea commit 31b23b0

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ Add this to your maven project **root** pom.xml :
5252
### Manual code formatting
5353

5454
```console
55-
mvn git-code-format:format-code -DglobPattern=**/*
55+
mvn git-code-format:format-code -Dgcf.globPattern=**/*
5656
```
5757

5858
### Manual code format validation
5959

6060
```console
61-
mvn git-code-format:validate-code-format -DglobPattern=**/*
61+
mvn git-code-format:validate-code-format -Dgcf.globPattern=**/*
6262
```
6363

6464
### Google Java Format options

Diff for: src/main/java/com/cosium/code/format/AbstractFormatMojo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
public abstract class AbstractFormatMojo extends AbstractModulMavenGitCodeFormatMojo {
2121

22-
@Parameter(property = "globPattern", required = true, defaultValue = "**/*")
22+
@Parameter(property = "gcf.globPattern", required = true, defaultValue = "**/*")
2323
private String globPattern;
2424

2525
@Override

Diff for: src/main/java/com/cosium/code/format/AbstractModulMavenGitCodeFormatMojo.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ public abstract class AbstractModulMavenGitCodeFormatMojo extends AbstractMavenG
1919
@Parameter(property = "gcf.skip", defaultValue = "false")
2020
private boolean skip;
2121

22-
@Parameter(property = "includedModules")
22+
@Parameter(property = "gcf.includedModules")
2323
private List<String> includedModules;
2424

25-
@Parameter(property = "excludedModules")
25+
@Parameter(property = "gcf.excludedModules")
2626
private List<String> excludedModules;
2727

2828
/** @return True if the goal is enabled for the current module */

Diff for: src/main/java/com/cosium/code/format/InstallHooksMojo.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,22 @@ public class InstallHooksMojo extends AbstractMavenGitCodeFormatMojo {
4343
* True to truncate hooks base scripts before each install. <br>
4444
* Do not use this option if any other system or human manipulate the hooks
4545
*/
46-
@Parameter(property = "truncateHooksBaseScripts", defaultValue = "false")
46+
@Parameter(property = "gcf.truncateHooksBaseScripts", defaultValue = "false")
4747
private boolean truncateHooksBaseScripts;
4848

4949
/** The list of properties to propagate to the hooks */
50-
@Parameter(property = "propertiesToPropagate")
50+
@Parameter(property = "gcf.propertiesToPropagate")
5151
private String[] propertiesToPropagate;
5252

5353
/** The list of properties to add to the hooks */
54-
@Parameter(property = "propertiesToAdd")
54+
@Parameter(property = "gcf.propertiesToAdd")
5555
private String[] propertiesToAdd;
5656

57-
@Parameter(property = "debug", defaultValue = "false")
57+
@Parameter(property = "gcf.debug", defaultValue = "false")
5858
private boolean debug;
5959

6060
/** Add pipeline to process the results of the pre-commit hook. Exit non-zero to prevent the commit */
61-
@Parameter(property = "preCommitHookPipeline", defaultValue = "")
61+
@Parameter(property = "gcf.preCommitHookPipeline", defaultValue = "")
6262
private String preCommitHookPipeline;
6363

6464
public void execute() throws MojoExecutionException {

0 commit comments

Comments
 (0)