I am doing more extended tests for Play Subproject feature as described here: http://www.playframework.com/documentation/2.0/SBTSubProjects. But I am getting the error:
I faced this problem last week when I was trying to write the Assets class as a Java class. I could solve the compilation problem writing the Assets class in my submodule as a Scala class, the same way as described on the docs: http://www.playframework.com/documentation/2.1.1/SBTSubProjects
Basically, my project's structure is:
MyApplication
| - app
| - conf
| - modules
| - admin
| - app
| - controllers
| - admin
| - Assets.scala
| - project
| - public
Assets.scala content:
package controllers.contabil
object Assets extends controllers.AssetsBuilder
And finally, the content of my admin.routes file is:
GET /assets/*file controllers.admin.Assets.at(path="/public", file)
# Home page
GET /index controllers.admin.Application.index()
Cheers