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?
Asked
Active
Viewed 190 times
0

hliu
- 1,015
- 8
- 16
1 Answers
0
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).

lmm
- 17,386
- 3
- 26
- 37
-
I have configured in my build.sbt and project/plugins.sbt. But , in which directory I put the thrift files can the compiler finds and generate automatically ? – hliu Jan 17 '15 at 03:22
-
I don't know SBT, but whichever one you configured or whichever the plugin defaults to - probably src/main/thrift. – lmm Jan 17 '15 at 08:06