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

com.processpuzzle.maven.plugin.fitnesse.mojo.TearDownMojo Maven / Gradle / Ivy

The newest version!
package com.processpuzzle.maven.plugin.fitnesse.mojo;

import static org.twdata.maven.mojoexecutor.MojoExecutor.configuration;
import static org.twdata.maven.mojoexecutor.MojoExecutor.element;
import static org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo;
import static org.twdata.maven.mojoexecutor.MojoExecutor.executionEnvironment;
import static org.twdata.maven.mojoexecutor.MojoExecutor.goal;

import org.apache.maven.plugin.MojoExecutionException;

import com.processpuzzle.maven.plugin.fitnesse.util.FitNesseHelper;

/**
 * Cleanup debris after FitNesse runs.
 * See {@link fitnesse.responders.run.formatters.PageInProgressFormatter}
 * and {@link fitnesse.slim.test.TestsInProgress},
 * wherein they have hard-coded the directory where they track test progress.
 * 
 * @goal tear-down
 * @phase post-integration-test
 */
public class TearDownMojo extends AbstractSetupsMojo {

	/**
	 * 
	 * {@code
	 * 
	 * 		maven-clean-plugin
	 * 		
	 * 			
	 * 				post-integration-test
	 * 				
	 * 					clean
	 * 				
	 * 				
	 * 					true
	 * 					
	 * 						
	 * 							FitNesseRoot
	 * 							false
	 * 						
	 * 					
	 * 				
	 * 			
	 * 		
	 * 
	 * }
	 * 
*/ @Override public final void execute() throws MojoExecutionException { executeMojo( plugin("org.apache.maven.plugins:maven-clean-plugin"), goal("clean"), configuration( element("excludeDefaultDirectories", "true"), element("filesets", element("fileset", element("directory", FitNesseHelper.DEFAULT_ROOT), element("followSymlinks", "false")))), executionEnvironment(project, session, pluginManager) ); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy