Permalink
Browse files

Set the current working directory the WAR directory to remove an App …

…Engine server warning about default file paths.

Change a couple of unconventional parentheses syntax choices.
  • Loading branch information...
1 parent b231f93 commit 5edf2fd6e63cf74c145d80ce68d39f7604c2b334 Jon Buffington committed with Yasushi Jan 28, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/main/scala/AppengineProject.scala
@@ -108,7 +108,7 @@ abstract class AppengineProject(info: ProjectInfo) extends DefaultWebProject(inf
None
}
- class DevAppserverRun() extends Runnable with ExitHook {
+ class DevAppserverRun extends Runnable with ExitHook {
ExitHooks.register(this)
def name = "dev_appserver-shutdown"
def runBeforeExiting() { stop() }
@@ -126,13 +126,14 @@ abstract class AppengineProject(info: ProjectInfo) extends DefaultWebProject(inf
def apply(args: Seq[String]): Option[String] = {
if (running.isDefined)
- Some("This instance of dev_appserver is already running.")
+ Some("An instance of dev_appserver is already running.")
else {
val builder: ProcessBuilder =
Process(javaCmd :: jvmOptions :::
"com.google.appengine.tools.development.DevAppServerMain" ::
- args.toList ::: temporaryWarPath.absolutePath :: Nil)
- running = Some(builder.run)
+ args.toList ::: temporaryWarPath.absolutePath :: Nil,
+ Some(temporaryWarPath.asFile))
+ running = Some(builder.run())
new Thread(this).start()
None
}

0 comments on commit 5edf2fd

Please sign in to comment.