Skip to content

Commit a7dd90e

Browse files
author
Denys Zaiats
committed
[improve-html-report] - commit 10
1 parent f901dfb commit a7dd90e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/java/net/itarray/automotion/internal/FinalReportBuilder.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
import com.webfirmframework.wffweb.tag.html.lists.Ol;
1111
import com.webfirmframework.wffweb.tag.html.metainfo.Head;
1212
import com.webfirmframework.wffweb.tag.htmlwff.NoTag;
13+
import org.apache.maven.plugin.AbstractMojo;
14+
import org.apache.maven.plugin.MojoExecutionException;
15+
import org.apache.maven.plugins.annotations.Mojo;
1316

1417
import java.io.BufferedOutputStream;
1518
import java.io.File;
@@ -21,9 +24,11 @@
2124
import static net.itarray.automotion.validation.Constants.TARGET_AUTOMOTION;
2225
import static net.itarray.automotion.validation.Constants.TARGET_AUTOMOTION_HTML;
2326

24-
public class FinalReportBuilder {
27+
@Mojo(name = "automotion")
28+
public class FinalReportBuilder extends AbstractMojo {
2529

26-
public void execute() {
30+
@Override
31+
public void execute() throws MojoExecutionException {
2732
File folder = new File(TARGET_AUTOMOTION_HTML);
2833
File[] listOfFiles = folder.listFiles();
2934
List<String> files = new ArrayList<>();

0 commit comments

Comments
 (0)