scala - Problems compiling routes after migrating to Play 2.1 -
after migrating play-2.1 stuck problem routes compiler stopped working routes file. it's been fine play-2.0.4, i'm getting build error , can't find workaround it.
in project i'm using cake pattern, controller actions visible not through <package>.<controller class>.<action>
, through <package>.<component registry>.<controller instance>.<action>
. new play routes compiler using action path components except lastly 2 form bundle name used in managed sources (as far can code in https://github.com/playframework/play20/blob/2.1.0/framework/src/routes-compiler/src/main/scala/play/router/routescompiler.scala). in case leads situation when <package>.<component registry>
chosen bundle name, results in error during build:
[error] server/target/scala-2.10/src_managed/main/com/grumpycats/mmmtg/componentsregistry/routes.java:5: componentsregistry defined object componentsregistry [error] bundle com.grumpycats.mmmtg.componentsregistry;
i made sample project demonstrate problem: https://github.com/rmihael/play-2.1-routes-problem
is possible workaround problem somehow without dropping cake pattern controllers? it's pity can't proceed play 2.1 due problem.
because of reputation can not create comment.
the convention classes , objects start upper case. convention applied pattern matching well. looking @ string there seems no difference between bundle object , normal object (appart case). not sure how play 2.1 handles things, that's why not reply comment.
scala playframework-2.1 cake-pattern
No comments:
Post a Comment