All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sitoolkit.wt.plugin.maven.EvidenceOpenMojo Maven / Gradle / Ivy

package io.sitoolkit.wt.plugin.maven;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import io.sitoolkit.wt.domain.evidence.EvidenceOpener;

@Mojo(name = "open-evidence", defaultPhase = LifecyclePhase.POST_INTEGRATION_TEST)
public class EvidenceOpenMojo extends AbstractMojo {

  @Parameter(property = "evidence.open", defaultValue = "true")
  private String evidenceOpen;

  @Override
  public void execute() throws MojoExecutionException, MojoFailureException {
    if (Boolean.parseBoolean(evidenceOpen)) {
      EvidenceOpener opener = new EvidenceOpener();
      opener.open();
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy