title: xsd2java - no.nils.wsdl2java
body: <p>I am following below tutorial to generate Xsd2Java using gradle</p>
  
  <p><a href="https://github.com/nilsmagnus/wsdl2java" rel="nofollow">https://github.com/nilsmagnus/wsdl2java</a></p>
  
  <p>I would like to know how can i pass command line argument to ant.xjc task.</p>
  
  <p>Here is my example but seems it's not taking my 3 argument ([extension: true], [value: '-Xtbs'] )</p>
  
  <pre><code>xsd2java {
     def contractDir = "$buildDir/extractedContracts"
     File perContract = new File("$contractDir/Enterprise.xsd")
     File adContract = new File("$contractDir/AdFpc.xsd")
     File adListContract = new File("$contractDir/AdListData.xsd")
  
    xsdsToGenerate = [
     [file("$perContract"), 'com.performance.contract',[extension: true], [ value: '-Xtbs']],
     [file("$adContract"), 'ad.contract',[extension: true],[value: '-Xtbs']],
     [file("$adListContract"), 'ad.list.contract',[extension: true], [value: '-Xtbs']],
    ]
    generatedXsdDir = file(project.ext.generatedSrcDir)
  }
  </code></pre>
  
  <p>-xtbs generate toString , hashcode and equals method </p>
  
  <p>does anyone have any suggestion or example of xsd2java</p>
  
  <p>Thanks</p>