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

io.sitoolkit.wt.plugin.maven.SetBaseEvidenceMojo 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.BaseEvidenceManager;
import io.sitoolkit.wt.domain.evidence.EvidenceDir;

/**
 * Copy target evidence files to base evidence directory. The base evidence is
 * to be compared another.
 *
 * 
 * ${targetEvidenceDir}/** -> ${baseEvidenceDir}/${browser}
 * 
* * @author yu.takada * */ @Mojo(name = "set-base-evidence") public class SetBaseEvidenceMojo extends AbstractMojo { /** * Evidence directory to be copied to base evidence direcory. If not set, * target is latest evidence in ${project.build.directory} */ @Parameter(property = "evidence.target") private String targetEvidence; @Override public void execute() throws MojoExecutionException, MojoFailureException { EvidenceDir targetDir = EvidenceDir.targetEvidenceDir(targetEvidence); BaseEvidenceManager baseEvidenceManager = new BaseEvidenceManager(); baseEvidenceManager.setBaseEvidence(targetDir); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy