Can I avoid compiling sources twice when running play2 and eclipse?(运行 play2 和 eclipse 时可以避免两次编译源代码吗?)
问题描述
目前我正在同时运行 eclipse 和播放(使用 ~run).当我更改文件时,它将由 play 和 eclipse 编译.
Currently I am running eclipse and play (with ~run) at the same time. When I change a file it will be compiled by play and by eclipse.
是否可以避免这两个编译步骤之一?
Is it possible to avoid one of those two compilation steps?
据我所知,eclipse 插件也使用 sbt 来构建项目,所以也许有办法在 eclipse 中执行 play "run" 命令?
As far as I know, the eclipse plugin also uses sbt to build the project so maybe there is a way to execute the play "run" command inside eclipse?
(我问是因为我的笔记本电脑不是很快,编译需要一些时间,我希望播放网页上宣传的快速周转";)
(I am asking because my laptop is not very fast and compilation takes some time, and I would like to have the "Fast turnaround" as advertised on the play webpage ;)
推荐答案
您可以从 Project
菜单中关闭 Build Automatically
而不会丢失任何 IDE 功能.二进制文件只能由 Sbt 构建(在命令行上).
You can turn off Build Automatically
from the Project
menu without losing any of the IDE functionality. Binaries will be built only by Sbt (on the command line).
使用 Scala IDE 设置 Play 2 的详细指南可在 Scala IDE 网站上找到:http://scala-ide.org/docs/tutorials/play20scalaide20/index.html
A detailed guide for setting-up Play 2 with Scala IDE can be found on the Scala IDE website: http://scala-ide.org/docs/tutorials/play20scalaide20/index.html
这篇关于运行 play2 和 eclipse 时可以避免两次编译源代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:运行 play2 和 eclipse 时可以避免两次编译源代码吗?
基础教程推荐
- 首次使用 Hadoop,MapReduce Job 不运行 Reduce Phase 2022-01-01
- 如何在不安装整个 WTP 包的情况下将 Tomcat 8 添加到 Eclipse Kepler 2022-01-01
- 如何使用 Stream 在集合中拆分奇数和偶数以及两者的总和 2022-01-01
- Spring Boot Freemarker从2.2.0升级失败 2022-01-01
- 如何强制对超级方法进行多态调用? 2022-01-01
- 在螺旋中写一个字符串 2022-01-01
- 由于对所需库 rt.jar 的限制,对类的访问限制? 2022-01-01
- 如何对 HashSet 进行排序? 2022-01-01
- 如何使用 Eclipse 检查调试符号状态? 2022-01-01
- Java 中保存最后 N 个元素的大小受限队列 2022-01-01