the solution described below turns out to have its flaws and is not really recommended — have a look at the recently posted update for a better solution!
simple build tool 0.7.5 comprised the jetty and webapp functionality — version 0.10.0 (sbt10) no longer does so, instead you have to pull in the sbt webplugin. one feature of sbt7.5’s webapp support that we used heavily was the ability to run jetty out of the source tree instead of the exploded temporary WAR file:
> Another possibility is to directly run the web application out of the the source web application path: > > override def jettyWebappPath = webappPath > override def scanDirectories = mainCompilePath :: testCompilePath :: Nil > > — sbt7.5, continuous redeployment
(we actually used to set
achieving the same setup with sbt10 is not as simple or even obvious, the solution reported in the simple build tool newgroups does not really provide the same feature, as it still requires to have a
~ prepare-webapp running in sbt. here’s what seems to work:
src/main/webapp are immediately effective for the running jetty instance. voila!