Frage

I have one PlayfFamework 2.x' (PF2) default scala project (htc-sample) and depended default PF2 scala project (htc) like was shown here:

http://www.playframework.org/documentation/2.0/SBTSubProjects

But I got one ERROR with routes when trying to launch the main project. Like this:

[info] Compiling 5 Scala sources and 1 Java source to ~/projects/sample-htc/modules/htc/target/scala-2.9.1/classes... [error] ~/projects/sample-htc/modules/htc/target/scala-2.9.1/src_managed/main/views/html/main.template.scala:23: not found: value routes [error] Any),format.raw/*8.94*/("""">

What is the procedure to work with subprojects regarding to routes?

--

I guess I found the answer: it is impossible to do.. in play v.2.0. Because of this statement:

"You may want to split a large project into several smaller applications, or even extract some logic into a standard Java or Scala library that has nothing to do with a Play application". But does it mean that the subproject could not be a play projects with routes file? it can depend on another Play application.

But there is another statement: "it can depend on another Play application."

War es hilfreich?

Lösung

Currently there's a limitation on play framework 2 regarding routes and subprojects

Have a look at these threads

https://groups.google.com/forum/#!msg/play-framework/O-lI0PsxM0U/fwHWylZoPpoJ

https://groups.google.com/d/msg/play-framework/Tr8NhKaHmiw/0_kY1z3OfAAJ

It's already solved in play 2.1 trunk

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top