我想在gradle任务中指定几个绑定文件的文件。
所以,一切都以这种方式运作:
xjc(destdir: sourcesDir, schema: schema, binding: 'src/main/resources/A.xjb')
并且不以这种方式运作:
xjc(destdir: sourcesDir, schema: schema, binding: binding(dir:'src/main/resources', includes:'A.xjb,B.xjb') or
xjc(destdir: sourcesDir, schema: schema, binding(dir:'src/main/resources', includes:'A.xjb,B.xjb')
答案 0 :(得分:1)
xjc(destdir: sourcesDir, schema: schema) {
binding(dir:'src/main/resources', includes:'A.xjb,B.xjb')
}