Tim\'s picture      Blogging Ottinger (tim)

2008-June-17

cmd script for fitnesse

Filed under: Programming

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.

Comments »

The URI to TrackBack this entry is: http://tottinge.blogsome.com/2008/06/17/cmd-script-for-fitnesse/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.

Get free blog up and running in minutes with Blogsome | Theme designs available here