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

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

There is a newer version: 3.0.0
Show newest version
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.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import io.sitoolkit.wt.app.compareevidence.MaskEvidenceGenerator;
import io.sitoolkit.wt.app.compareevidence.MaskScreenshotGenerator;
import io.sitoolkit.wt.domain.evidence.EvidenceDir;

/**
 *
 *
 * @author yu.takada
 *
 */
@Mojo(name = "mask-evidence")
public class MaskEvidenceMojo extends AbstractMojo {

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

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

    EvidenceDir targetDir = EvidenceDir.targetEvidenceDir(targetEvidence);

    MaskScreenshotGenerator mask = new MaskScreenshotGenerator();
    mask.generate(targetDir);

    MaskEvidenceGenerator evidence = new MaskEvidenceGenerator();
    evidence.generate(targetDir);

  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy