Package uk.co.javahelp.maven.plugin.fitnesse.mojo

Source Code of uk.co.javahelp.maven.plugin.fitnesse.mojo.ShutdownMojo

package uk.co.javahelp.maven.plugin.fitnesse.mojo;

import uk.co.javahelp.maven.plugin.fitnesse.util.FitNesseHelper;
import fitnesse.Arguments;

/**
* Goal that shuts down FitNesse.
* This is done by sending GET to http://localhost:<port>/?responder=shutdown.
*
* @goal shutdown
*/
public class ShutdownMojo extends org.apache.maven.plugin.AbstractMojo {
 
    /**
     * @parameter property="fitnesse.port" default-value="9123"
     */
    private String port = Integer.toString(Arguments.DEFAULT_COMMAND_PORT);

  @Override
    public final void execute() {
         new FitNesseHelper(getLog()).shutdownFitNesseServer(port);
         getLog().info("FitNesse wiki server is shutdown.");
    }
}
TOP

Related Classes of uk.co.javahelp.maven.plugin.fitnesse.mojo.ShutdownMojo

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.