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

io.sitoolkit.wt.plugin.maven.AttachEvidenceLinkMojo 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.app.evidence.EvidenceReportEditor;
import io.sitoolkit.wt.domain.evidence.EvidenceDir;

@Mojo(name = "attach-evidence-link", defaultPhase = LifecyclePhase.VERIFY)
public class AttachEvidenceLinkMojo extends AbstractMojo {

  @Parameter(property = "evidence.target")
  private String targetEvidence;

  @Override
  public void execute() throws MojoExecutionException, MojoFailureException {

    EvidenceDir targetDir = EvidenceDir.targetEvidenceDir(targetEvidence);

    if (!targetDir.exists()) {
      return;
    }

    EvidenceReportEditor.staticExecute(targetDir);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy