nxp10009@NXL01366 /c/development/play-2.0.4 $ echo $PLAY_HOME C:\development\play-2.0.4
When I tried to run play from the Git Bash shell I ran into below exception. In the past I didn't bother that much and just used the DOS shell as a workaround. But I like to work from one shell only so time to look for a solution.
nxp10009@NXL01366 /c/workspaces/scala
$ play
Error during sbt execution: Could not find configuration file 'c:/development/play-2.0.4/framework/sbt/play.boot.properties'. Searched:
file:/c:/workspaces/scala/
file:/C:/Users/nxp10009/
file:/C:/development/play-2.0.4/framework/sbt/
Luckily someone created a patch to resolve this issue. You can download the gist and unzip it to some folder. It will contain a file named play_cgywin.patch. So it's matter of applying the patch from within Git Bash. It will log an error but play will work nonetheless.
nxp10009@NXL01366 /c/development/play-2.0.4 $ patch -p1 < c:/tmp/play_cygwin.patch patching file `framework/build' Hunk #1 FAILED at 8. 1 out of 1 hunk FAILED -- saving rejects to framework/build.rej patching file `play'
nxp10009@NXL01366 /c/workspaces/scala
$ play
Getting play console_2.9.1 2.0.4 ...
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
5 artifacts copied, 0 already retrieved (3667kB/83ms)
_ _
_ __ | | __ _ _ _| |
| '_ \| |/ _' | || |_|
| __/|_|\____|\__ (_)
|_| |__/
play! 2.0.4, http://www.playframework.org
No comments:
Post a Comment