Reputation: 1047
when using Finagle you can place the thrift file in the directory src/main/thrift/
, and when compiling it can generate thrift file automatically in the directory target/scala-2.10/src_managed/main/
.
How can the Play framework do the same thing automatically?
Upvotes: 0
Views: 192
Reputation: 17431
You just need to configure the SBT plugin or the Maven plugin. Though note that this will still produce Finagle-oriented implementations - Scrooge only really supports those. (I have a pull request outstanding to add support for other kind of server implementations).
Upvotes: 0