Play! - Interaction with webapp from SBT console
I have a game! 2, where I defined some tasks. These seats interact with external web services and with the database, so a running application is required to run.
I would like to be able to run these jobs as SBT tasks from the Play Console. So I followed the tutorial to define my own tasks and I can define simple tasks. What I cannot do is import from the application namespace. I guess this makes sense - in the context of SBT, our application may not work.
Is there a way to write an SBT task when the application is running and who has access to the application's namespace?
source to share
Don't know if you still need an answer, have you tried using Play Play?
$ play console
It loads all of your application classes so you can use them however you want.
See http://www.playframework.com/documentation/2.1.0/PlayConsole for details :)
source to share