解决Scala Play框架在Git Bash运行的异常:Could not find configuration file ../framework/sbt/sbt.boot.properties

Git Bash+ConEmu可以模拟Linux强大的命令行。不过在结合Scala和Play时,需要注意如下事项:

1. Scala的安装在64位操作系统下,默认会放在“C:\Program Files (x86)\”。更改此目录使其安装在没有空格没有括号的目录下。

2. chmod a+x scala,使此脚本具有执行权限。

3. 安装完Play2后,因为路径原因会出现“Could not find configuration file ../framework/sbt/sbt.boot.properties”的问题,此时更改两个文件:

  • $PLAY_HOME\framework\build:将-Dsbt.boot.properties=`dirname $0`/sbt/sbt.boot.properties改成-Dsbt.boot.properties=sbt.boot.properties 
  • $PLAY_HOME\play:将 -Dsbt.boot.properties=$dir/framework/sbt/play.boot.properties改成-Dsbt.boot.properties=play.boot.properties

 

这样就可在Git Bash里使用scala+paly的组合了

 

本文完

posted @ 2014-03-18 17:32  macemers  阅读(1445)  评论(0编辑  收藏  举报