运行 play2 和 eclipse 时可以避免两次编译源代码吗? [英] Can I avoid compiling sources twice when running play2 and eclipse?

查看:41
本文介绍了运行 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 时可以避免两次编译源代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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