Java 如何通过单个命令为文件夹中的所有旧文件生成所有类?
现在,我对文件夹中的每个文件使用以下命令:Java 如何通过单个命令为文件夹中的所有旧文件生成所有类?,java,thrift,Java,Thrift,现在,我对文件夹中的每个文件使用以下命令: thrift-0.11.0.exe --gen java reswk-manager.thrift 真的很不舒服 我知道我可以为文件迭代创建bat脚本,但我不喜欢它 我可以通过sing命令来实现吗?您可以创建一个类似于节俭的make文件,名为build.thrift(或其他类似文件),如下所示: include "a.thrift" include "b.thrift" include "./somedir/c.thrift" include "./
thrift-0.11.0.exe --gen java reswk-manager.thrift
真的很不舒服
我知道我可以为文件迭代创建bat脚本,但我不喜欢它
我可以通过sing命令来实现吗?您可以创建一个类似于节俭的make文件,名为build.thrift(或其他类似文件),如下所示:
include "a.thrift"
include "b.thrift"
include "./somedir/c.thrift"
include "./someotherdir/d.thrift"
然后使用-r开关运行thrift以递归方式构建所有依赖项:
thrift-r-gen java build.thrift
您可以创建一个类似节俭的make文件,名为build.thrift(或其他类似文件),如下所示:
include "a.thrift"
include "b.thrift"
include "./somedir/c.thrift"
include "./someotherdir/d.thrift"
然后使用-r开关运行thrift以递归方式构建所有依赖项:
thrift-r-gen java build.thrift
以下答案不被接受的任何原因?以下答案不被接受的任何原因?