Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ public abstract class AbstractNonDexMojo extends AbstractMojo {
protected String loggingLevel;

// Generic properties
@Parameter(property = "skip", defaultValue = "false")
protected boolean skip;
@Parameter(property = "project")
protected MavenProject mavenProject;
@Parameter(defaultValue = "${project.build.directory}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public class DebugMojo extends AbstractNonDexMojo {

@Override
public void execute() throws MojoExecutionException, MojoFailureException {
if (skip) {
Logger.getGlobal().log(Level.INFO, "Execution skipped");
return;
}
super.execute();
this.parseExecutions();
this.parseTests();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ public class NonDexMojo extends AbstractNonDexMojo {

@Override
public void execute() throws MojoExecutionException, MojoFailureException {
if (skip) {
Logger.getGlobal().log(Level.INFO, "Execution skipped");
return;
}
super.execute();
Logger.getGlobal().log(Level.INFO, "The original argline is: " + this.originalArgLine);
MojoExecutionException allExceptions = null;
Expand Down