cmd script for fitnesse
I hate the run.bat that comes with FitNesse. When I’m stuck in windows, I’d rather do it this way:
@echo off
title FitNesse server
set opts= -e 0
set opts=%opts% -d PathToThePlaceWhereFitnesseTestsAre
set opts=%opts% -r FitnesseTests
set opts=%opts% -p 8080
java -cp fitnesse.jar fitnesse.FitNesse %opts% %*
pause
It’s a .cmd file taht sets some options for me. The “-e 0″ means to NOT create *any* zip file, so there’s no ad-hoc version control going on (polluting my directory). I use the -d and -r to control where my tests are located (PathToThePlaceWhereFitnesseTestsAre\FitnesseTests). Of course, port 80 is always either blocked or busy, so 8080 is my default. I don’t use it for anything but fitnesse. Finally you have the java line where all other cmd line options are passed (fooey on %1 %2 %3 %4 stuff from before) and the pause at the end.
It’s a little closer to being version-able (if you don’t mind having to post-facto fix up after moves and renames) and creates no unnecessary clutter other than error logs.


