The Problem/s:
- Views are being compiled but hitting refresh in a browser won't show the changes without restarting the server manually.
- Changes to controllers compile automatically using
~run
but only a manual server restart will update the content on the server. - Changes to
routes
underconf
are only shown after manually restarting the server.
Background:
- running on OSX 10.8.3
- using Eclipse Juno 4.2.2
- Server is launched using
play ~run
- Only restarting the server will show changes to views, controllers, routes
To be able to make changes without having to restart the server each time I tried (without success):
- in the console:
clean
->eclipse
->~run
- in the console:
clean
->compile
->~run
- shutdown/restart the computer
- Tick
Refresh using native hooks or polling
-> removeclasses_managed
fromReferenced Libraries
and add it manually
Questions:
- How can the Auto-Reload functionality be restored?
- How can this problem be solved on IDEs besides Eclipse?
Further information:
- Playframework reload not working Mac OSX
- Auto-reloading with Play framework on a network filesystem
Both of them point to JNotify as the cause for auto-reloading not to work. One of the answers (not enough rep to write a comment) mentions how one could "hack Play framework's sbt plugin to make the PlayReloader trait behave as if JNotify wasn't available." How could one achieve this?