Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I avoid compiling sources twice when running play2 and 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?

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 ;)

like image 716
Peter Zeller Avatar asked Jun 07 '12 13:06

Peter Zeller


1 Answers

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

like image 89
Iulian Dragos Avatar answered Nov 03 '22 19:11

Iulian Dragos