Scala 如何";包括「;来自不同模块的旧文件?
场景:一个包含多个子项目的大项目,SBT构建定义Scala 如何";包括「;来自不同模块的旧文件?,scala,thrift,thrift-protocol,twitter-finagle,Scala,Thrift,Thrift Protocol,Twitter Finagle,场景:一个包含多个子项目的大项目,SBT构建定义 rootproject/ api/ src/ main/ thrift/ SomeService.thrift core/ src/ main/ thrift/ SomeModel.thrift 在SomeService.thrift中包含SomeModel.thrift的正确方法是什么?设法找到了答案。 路径包含按预期工作: So
rootproject/
api/
src/
main/
thrift/
SomeService.thrift
core/
src/
main/
thrift/
SomeModel.thrift
在
SomeService.thrift
中包含SomeModel.thrift的正确方法是什么?设法找到了答案。
路径包含按预期工作:
SomeService.thrift
如下所示:
include ../../../../SomeModels.thrift
// And then normal IDL definitions
struct Test {
1: required SomeModels.Model model
}
设法找到了答案。 路径包含按预期工作:
SomeService.thrift
如下所示:
include ../../../../SomeModels.thrift
// And then normal IDL definitions
struct Test {
1: required SomeModels.Model model
}