thrift:generate-python在SBT中不生成Python文件

时间:2014-02-19 06:23:55

标签: sbt thrift

我使用sbt-thrift 0.6 ,我在构建定义中有以下内容:

thriftPythonEnabled := true,
thriftPythonOutputDir <<= sourceDirectory(_ / "python")

当我运行thrift:generate-python时,它什么也没有产生。 thrift:generate-java工作正常。

有人可以告诉我在插件中启用Python支持需要做些什么吗?

1 个答案:

答案 0 :(得分:1)

您在设置中错过了Thrift配置。

尝试以下内容(使用SBT 0.12 语法):

thriftPythonEnabled in Thrift := true,
thriftPythonOutputDir in Thrift <<= sourceDirectory(_ / "python")