运行Play 2.5.x的警告消息 [英] Warning message running Play 2.5.x

查看:59
本文介绍了运行Play 2.5.x的警告消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我使用activator run运行应用程序时,都会收到以下警告:

Whenever I run my application with activator run I get the following warning:

"The system cannot find the file BIN_DIRECTORY\..\conf\sbtconfig.txt"

此消息是什么意思?我应该创建这个文件吗?该应用程序运行正常.

What does this message mean? Should I create this file? The application works fine.

推荐答案

@ ps0604首先,您应该遵循James Higgins-Thomas的第二个答案,并编辑C:\ your \ path \ to \ activator-dist-1.3.10 \ bin \ activator.bat文件并添加一个结束%符号

@ps0604 Firstly, you should follow James Higgins-Thomas's 2nd answer and edit the C:\your\path\to\activator-dist-1.3.10\bin\activator.bat file and add a closing % symbol

set SBT_HOME=%BIN_DIRECTORY%

第二,需要将在Scala目录C:\ Program Files \ sbt \ conf \中找到的sbtconfig.txt复制到C:\ your \ path \ to \ activator-dist-1.3.10 \ conf. Google的发布是从2013年开始的-所以我认为它有点过时了

Secondly, the sbtconfig.txt found in the Scala directory C:\Program Files\sbt\conf\ needs to be copied to C:\your\path\to\activator-dist-1.3.10\conf. The google posting is from 2013 - so I think it's a bit dated

请记住,我认为SBT_HOME变量指向Activator中的目录很奇怪.最好有

Mind you, I think that it's odd that the SBT_HOME variable would point to a directory in Activator. It might be better to have

set SBT_HOME="c:\Program Files\sbt\"

(我知道它是硬编码的-不是最好的)

(I know it's hard coded - not the best)

然后修复

set FN="%SBT_HOME%\conf\sbtconfig.txt"

这篇关于运行Play 2.5.x的警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆