title: gradle wsimport multiple bindings
body: <p>I am converting our build from ant to gradle and have run into a problem when using the ant task wsimport.<br>
  This is the original from ant</p>
  
  <pre><code>&lt;wsimport sourcedestdir="${module.local-lib.dir}"
                            destdir="${module.local-lib.dir}"
                            wsdl="${common.wsdl.dir}/${wsdl.file.name}"
                            xadditionalHeaders="true"
                            fork="true"&gt;
                      &lt;binding dir="${wsdl.dir}" includes="jaxb-bindings.xml,jaxws-bindings.xml"/&gt;                        
                  &lt;/wsimport&gt;
  </code></pre>
  
  <p>This works fine.</p>
  
  <p>From Gradle I made many attempts...</p>
  
  <pre><code>    ant{
                      taskdef(name:'wsimport', classname:'com.sun.tools.ws.ant.WsImport', classpath:configurations.tools.asPath)
                      wsimport(
                              keep:true,
                              destdir: tempDestFile,
                              wsdl:"${common_WSDL_dir}/${current_wsdl_name}.wsdl",
                              xadditionalHeaders:true
                      ){
                          binding(dir:file("${module_src_main_wsdl}"), includes:"${jaxws_consumed_binding}")
                      }
       }
  </code></pre>
  
  <p>Error Property "Type" is already defined - this makes me think the bindings aren't being accepted (at least not both of them) since it worked for ant</p>
  
  <pre><code>ant{
                  taskdef(name:'wsimport', classname:'com.sun.tools.ws.ant.WsImport', classpath:configurations.tools.asPath)
                  wsimport(
                          keep:true,
                          destdir: tempDestFile,
                          wsdl:"${common_WSDL_dir}/${current_wsdl_name}.wsdl",
                          xadditionalHeaders:true
                  ){
                      binding="${module_src_main_wsdl}/jaxb-bindings.xml"
                      binding="${module_src_main_wsdl}/jaxws-bindings.xml"
                  }
   }
  </code></pre>
  
  <p>Error Property "Type" is already defined - this makes me think the bindings aren't being accepted (at least not both of them) since it worked for ant</p>
  
  <pre><code>ant{
                  taskdef(name:'wsimport', classname:'com.sun.tools.ws.ant.WsImport', classpath:configurations.tools.asPath)
                  wsimport(
                          keep:true,
                          destdir: tempDestFile,
                          wsdl:"${common_WSDL_dir}/${current_wsdl_name}.wsdl",
                          xadditionalHeaders:true,
                          binding:"${module_src_main_wsdl}/jaxb-bindings.xml",
                          binding:"${module_src_main_wsdl}/jaxws-bindings.xml"
                  )                        
   }
  </code></pre>
  
  <p>Would not even start. duplicate named parameter 'binding' found</p>
  
  <pre><code>ant{
                  taskdef(name:'wsimport', classname:'com.sun.tools.ws.ant.WsImport', classpath:configurations.tools.asPath)
                  wsimport(
                          keep:true,
                          destdir: tempDestFile,
                          wsdl:"${common_WSDL_dir}/${current_wsdl_name}.wsdl",
                          xadditionalHeaders:true,
                          binding(dir"${module_src_main_wsdl}", includes:"jaxb-bindings.xml,jaxws-bindings.xml")
                  )                        
   }
  </code></pre>
  
  <p>Problem: failed to create task or type binding
  cause: the name is undefined</p>
  
  <p>So basically what I am wondering is... Is there a way to define multiple bindings for wsimport in gradle like there is for wsimport in ant. Thanks. </p>