Scrooge插件可以选择从库依赖项(jar文件)中包含The文件。这些jar文件通常已经包含生成的源。如果我包含了一个these,我不想再次生成这些源。否则就会被复制。
shared.thift
namespace java me.shared
struct Foo {
1: string id
}shared.jar
me
shared
Foo.scala
shared.thrift因此,当我的项目依赖于shared.jar,并且在另一个shared.thrift IDL文件中包含shared.thrift时,我不希望Scrooge再次生成Foo.scala。最直截了当的归档方法是什么?
发布于 2014-10-08 08:53:39
实际上是直截了当。
scroogeThriftSources in Compile ~= { sources: Seq[File] =>
sources filter { case file =>
!file.getName.contains("shared.thrift")
}
}https://stackoverflow.com/questions/26233323
复制相似问题