Permalink
Browse files

Removing deprecation warnings encountered when running "./sbt test" i…

…mmediately after a git clone of current trunk:

* Using "extends App" instead of "extends Application"
* Using "sys.exit()" instead of just plain "exit()"
  • Loading branch information...
1 parent f068381 commit b84d561aefc7caa5af065fe42d35797386e992b2 tom.vaughan committed Feb 29, 2012
@@ -10,6 +10,6 @@ object LiftConsole {
// Now run the MainGenericRunner to get your repl
MainGenericRunner.main(args)
// After the repl exits, then exit the scala script
- exit(0)
+ sys.exit(0)
}
}
@@ -3,7 +3,7 @@ import org.mortbay.jetty.Server
import org.mortbay.jetty.webapp.WebAppContext
import org.mortbay.jetty.nio._
-object RunWebApp extends Application {
+object RunWebApp extends App {
val server = new Server
val scc = new SelectChannelConnector
scc.setPort(8080)

0 comments on commit b84d561

Please sign in to comment.