Skip to content

Commit

Permalink
Rename Mojo parameters for skip
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Nov 19, 2023
1 parent e4103c3 commit 2d63c03
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/it/add-resource-skip/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<targetPath>does-not-matter</targetPath>
</resource>
</resources>
<skip>true</skip>
<skipAddResource>true</skipAddResource>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion src/it/add-resource-skip/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ assert file.exists();

String text = file.getText("utf-8");

assert text.contains("skip = true");
assert text.contains("skipAddResource = true");
assert text.contains("Skipping plugin execution!");

return true;
2 changes: 1 addition & 1 deletion src/it/add-source-skip/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<sources>
<source>${project.basedir}/not-existing</source>
</sources>
<skip>true</skip>
<skipAddSource>true</skipAddSource>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion src/it/add-source-skip/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ assert file.exists();

String text = file.getText("utf-8");

assert text.contains("skip = true");
assert text.contains("skipAddSource = true");
assert text.contains("Skipping plugin execution!");

return true;
2 changes: 1 addition & 1 deletion src/it/add-test-resource-skip/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<targetPath>does-not-matter</targetPath>
</resource>
</resources>
<skip>true</skip>
<skipAddTestResource>true</skipAddTestResource>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion src/it/add-test-resource-skip/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ assert file.exists();

String text = file.getText("utf-8");

assert text.contains("skip = true");
assert text.contains("skipAddTestResource = true");
assert text.contains("Skipping plugin execution!");

return true;
2 changes: 1 addition & 1 deletion src/it/add-test-source-skip/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<sources>
<source>${project.basedir}/not-existing</source>
</sources>
<skip>true</skip>
<skipAddTestSource>true</skipAddTestSource>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion src/it/add-test-source-skip/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ assert file.exists();

String text = file.getText("utf-8");

assert text.contains("skip = true");
assert text.contains("skipAddTestSource = true");
assert text.contains("Skipping plugin execution!");

return true;
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class AddResourceMojo extends AbstractAddResourceMojo {
* @since 3.5.0
*/
@Parameter(property = "buildhelper.addresource.skip", defaultValue = "false")
private boolean skip;
private boolean skipAddResource;

public void addResource(Resource resource) {
getProject().addResource(resource);
Expand All @@ -54,6 +54,6 @@ public void addResource(Resource resource) {
}

protected boolean isSkip() {
return skip;
return skipAddResource;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public class AddSourceMojo extends AbstractMojo {
* @since 3.5.0
*/
@Parameter(property = "buildhelper.addsource.skip", defaultValue = "false")
private boolean skip;
private boolean skipAddSource;

public void execute() {
if (skip) {
if (skipAddSource) {
if (getLog().isInfoEnabled()) {
getLog().info("Skipping plugin execution!");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class AddTestResourceMojo extends AbstractAddResourceMojo {
* @since 3.5.0
*/
@Parameter(property = "buildhelper.addtestresource.skip", defaultValue = "false")
private boolean skip;
private boolean skipAddTestResource;

/**
* Add the resource to the project.
Expand All @@ -60,6 +60,6 @@ public void addResource(Resource resource) {

@Override
protected boolean isSkip() {
return skip;
return skipAddTestResource;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public class AddTestSourceMojo extends AbstractMojo {
* @since 3.5.0
*/
@Parameter(property = "buildhelper.addtestsource.skip", defaultValue = "false")
private boolean skip;
private boolean skipAddTestSource;

public void execute() {
if (skip) {
if (skipAddTestSource) {
if (getLog().isInfoEnabled()) {
getLog().info("Skipping plugin execution!");
}
Expand Down

0 comments on commit 2d63c03

Please sign in to comment.