コード例 #1
0
 /**
  * Start the fitnesse commander.
  *
  * @throws MojoFailureException - unable to create FitNesseCommander.
  * @throws MojoExecutionException - unable to start commander.
  */
 private void startCommander() throws MojoFailureException, MojoExecutionException {
   commander =
       new FitNesseCommander(
           getCommanderConfig(getJvmDependencies(), getJvmArguments(), 0, fitNesseRunPort));
   try {
     commander.start();
   } catch (MafiaException me) {
     throw new MojoExecutionException(me.getMessage(), me);
   }
   if (commander.hasError()) {
     logErrorMessages(commander.getOutput(), commander.getErrorOutput());
     throw new MojoExecutionException("Could not start FitNesse");
   }
   getLog().info("FitNesse start on: http://localhost:" + fitNesseRunPort);
 }
コード例 #2
0
 /**
  * Stop the fitnesse commander.
  *
  * @throws MojoExecutionException - unable to stop fitnesse.
  */
 private void stopCommander() throws MojoExecutionException {
   try {
     commander.stop();
     getLog().info("FitNesse stopped on: http://localhost:" + fitNesseRunPort);
   } catch (MafiaException me) {
     throw new MojoExecutionException(me.getMessage(), me);
   }
 }