thrift:generate-python generates no Python files in SBT

耗尽温柔 提交于 2019-12-04 06:25:12

问题


I use sbt-thrift 0.6 and I've got the following in the build definition:

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

When I run thrift:generate-python it generates nothing. thrift:generate-java works fine.

Can someone tell me what I have to do to enable the Python support in the plugin?


回答1:


You miss Thrift config in your setting.

Give the following a try (using SBT 0.12 syntax):

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


来源:https://stackoverflow.com/questions/21872682/thriftgenerate-python-generates-no-python-files-in-sbt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!