/** * 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); }