如何在 Play Framework 中进行详细编译? [英] How can I do a verbose compile in Play Framework?

查看:27
本文介绍了如何在 Play Framework 中进行详细编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 Java 的 play framework 2.0.8 中是否可以进行详细编译?

In play framework 2.0.8 with Java is it possible to do a verbose compile?

目前我只看到:

[信息] 编译 131 个 Scala 源和 10 个 Java 源以......

[info] Compiling 131 Scala sources and 10 Java sources to ...

我正在尝试确定为什么在更改控制器时会重新编译这么多文件.

I'm trying to determine why so many files are recompiled when changing a controller.

提前致谢

推荐答案

Play wraps sbt,所以你可以在 play 控制台中使用 sbt 命令 set logLevel in compile := Level.Debug 来设置日志记录级别.来源:配置和使用日志记录

Play wraps sbt, so you could use the sbt command set logLevel in compile := Level.Debug within the play console to set the logging level. Source: Configure and use logging

更改控制器可能会触发路由编译器,这将需要重新编译反向路由,然后可能还会使用这些反向路由.我不确定细节,但我几乎可以保证路由编译器参与了大多数大规模重新编译.

Changing a controller could trigger the routes compiler, which would need reverse routes to be recompiled, and then potentially anything using those reverse routes as well. I'm not sure of the details, but I can almost guarantee the routes compiler is involved with most mass re-compiles.

这篇关于如何在 Play Framework 中进行详细编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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