rake tasks to stop/start jetty are great, and DRY'ing the code for stop/starting jetty between the rake tasks and other places does seem like a good idea, if it's easily do-able in the code. 

I actually embarked on trying to do that once, but aspects of the way jettywrapper was written at the time were making it more challenging than I expected and I abandoned it, I forget the details.