更新时间:2023-01-16 13:06:01
根据该文档为ant xjc任务 -
According to this documentation for the ant xjc task -
要同时指定多个外部绑定文件,请使用与fileset具有相同语法的嵌套元素。
"To specify more than one external binding file at the same time, use a nested element, which has the same syntax as fileset."
在gradle中,它看起来像这样:
In gradle it would look like this:
binding(dir:'src/main/schema'){
include(name:'A.xjb')
include(name:'B.xjb')
}
我认为这也可行:
I think this would also work:
binding(dir:'src/main/schema', includes:'A.xjb,B.xjb')