在Scala ant构建中获取播放错误

时间:2017-01-23 13:08:00

标签: scala playframework ant

我正在使用play 1.2.7,以下是我的scala文件的构建脚本:

import play.api._
import models._
import anorm._
import play.api.mvc.Filter
import play.api.mvc.RequestHeader
import play.api.mvc.Result
import scala.concurrent.Future
import play.api.mvc.SimpleResult
import play.api.mvc.WithFilters
import play.Configuration
import filter.UrlRewritingFilter
import play.api.libs.Crypto

我的scala文件中有以下导入:

error: object mvc is not a member of package play.api
   [scalac] import play.api.mvc.Filter
 error: object Configuration is not a member of package play
   [scalac] import play.Configuration
 error: object Logger is not a member of package play.api
   [scalac] import play.api.Logger
error: object data is not a member of package play.api
   [scalac] import play.api.data._

当我运行此构建脚本时,我发现在.scala文件中使用的播放异常

<configuration doc:name="Configuration">
<expression-language autoResolveVariables="false">
<global-functions>
def extractmsg(messageString) {
    int firstindex = messageString.indexOf(":");
    int endindex = messageString.indexOf("(");
    String msg = messageString.substring(firstindex+1, endindex).trim();
    return msg;
}
</global-functions>
</expression-language>
</configuration>

我在类路径中添加了play jar但仍然遇到这些错误。任何人都可以给我任何指针如何解决这些错误?

0 个答案:

没有答案