Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何通过单个命令为文件夹中的所有旧文件生成所有类?_Java_Thrift - Fatal编程技术网

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


以下答案不被接受的任何原因?以下答案不被接受的任何原因?