Play Framework 2.1 Java/Eclipse: Auto-Reload not working

让人想犯罪 __ 提交于 2019-12-04 07:44:23

The following got Play's auto-reload to working with Eclipse:

  1. In Eclipse Preferences go to GeneralWorkspace. Uncheck Build automatically.
  2. Restart OS X.

For whatever reason, I had to restart OS X to get akim's suggestion to take hold.

I got around this problem by changing the project configuration in Eclipse. I unchecked the "Allow output folders for source folders" option, which means that Eclipse will compile classes to the "bin" folder. This prevents the Eclipse compilation from interfering with the Play compilation. The only downside is that you have to remember to redo it if you ever do play eclipse again.

Following akim's suggestion, disabling Build automatically under General\Workspace in the Eclipse Preferences solves the problem and re-enables Play!'s auto-reload functionality in all of the above problem cases.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!