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

查看:101
本文介绍了运行play2和eclipse时可以避免编译源两次吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正在运行eclipse和播放(与〜run)在同一时间。当我更改文件时,它将通过播放和eclipse编译。



是否可以避免这两个编译步骤之一?



据我所知,eclipse插件还使用sbt构建项目,也许有一种方法可以在eclipse中执行playrun命令?



(我问,因为我的笔记本电脑不是很快,编译需要一些时间,我想要在播放网页上公布快速周转; )

解决方案

您可以关闭自动生成 $ c> Project 菜单,而不会丢失任何IDE功能。二进制文件将仅由Sbt(在命令行中)构建。



可以在Scala IDE网站上找到有关使用Scala IDE设置P​​lay 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屋!

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