运行play2和eclipse时可以避免编译源两次吗? [英] Can I avoid compiling sources twice when running play2 and eclipse?
问题描述
是否可以避免这两个编译步骤之一?
据我所知,eclipse插件还使用sbt构建项目,也许有一种方法可以在eclipse中执行playrun命令?
(我问,因为我的笔记本电脑不是很快,编译需要一些时间,我想要在播放网页上公布快速周转; )
您可以关闭自动生成
$ c> Project 菜单,而不会丢失任何IDE功能。二进制文件将仅由Sbt(在命令行中)构建。
可以在Scala IDE网站上找到有关使用Scala IDE设置Play 2的详细指南: http://scala-ide.org/docs/tutorials/play20scalaide20/index.html
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?
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 ;)
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).
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时可以避免编译源两次吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!