Skip to content

Commit

Permalink
Add a skip flag
Browse files Browse the repository at this point in the history
  • Loading branch information
reda-alaoui committed Apr 19, 2024
1 parent 9f3f332 commit dafacfb
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public class JasperReporter extends AbstractMojo {
static final String ERROR_JRE_COMPILE_ERROR =
"Some Jasper reports could not be compiled. See log above for details.";

@Parameter(defaultValue = "false")
private boolean skip;

/**
* This is the java compiler used
*/
Expand Down Expand Up @@ -187,6 +190,11 @@ public void execute() throws MojoExecutionException {
logConfiguration(log);
}

if (skip) {
log.info("Skipping.");
return;
}

checkOutDirWritable(outputDirectory);

SourceMapping mapping = new SuffixMapping(sourceFileExt, outputFileExt);
Expand Down

0 comments on commit dafacfb

Please sign in to comment.