add string skippingTheExecution

pull/578/head
null 2023-10-19 02:18:41 +00:00
parent 96e5258ab4
commit 3e751f8157
1 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,8 @@ import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.eclipse.che.dto.generator.DtoGenerator;
/** Mojo to run {@link org.eclipse.che.dto.generator.DtoGenerator}. */
@Mojo(name = "generate", requiresDependencyResolution = ResolutionScope.COMPILE)
public class DtoGeneratorMojo extends AbstractMojo {
@ -38,10 +40,12 @@ public class DtoGeneratorMojo extends AbstractMojo {
@Parameter(property = "che.dto.skip", defaultValue = "false")
private boolean skip;
private static String skippingTheExecution= "Skipping the execution";
@Override
public void execute() throws MojoExecutionException {
if (skip) {
getLog().info("Skipping the execution");
getLog().info(skippingTheExecution);
return;
}