gradle xjc任务中的多个绑定文件

时间:2017-03-27 18:40:56

标签: java gradle ant jaxb xjc

我想在gradle任务中指定几个绑定文件的文件。

I've read doc.

Also I've checked this link.

所以,一切都以这种方式运作:

          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')

Logs

1 个答案:

答案 0 :(得分:1)

xjc(destdir: sourcesDir, schema: schema) {
    binding(dir:'src/main/resources', includes:'A.xjb,B.xjb')
}