io.sitoolkit.wt.plugin.maven.ReportOpenMojo 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.EvidenceDir;
import io.sitoolkit.wt.domain.evidence.ReportOpener;
@Mojo(name = "open-report", defaultPhase = LifecyclePhase.VERIFY)
public class ReportOpenMojo extends AbstractMojo {
@Parameter(property = "evidence.open", defaultValue = "true")
private String evidenceOpen;
@Parameter(property = "evidence.target")
private String targetEvidence;
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
if (Boolean.parseBoolean(evidenceOpen)) {
ReportOpener opener = new ReportOpener();
opener.open(EvidenceDir.targetEvidenceDir(targetEvidence));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy