On 10/20/2011 02:17 PM, Peter Niederwieser wrote:
> 
> David Kowis wrote:
>>
>> Is there a better way to add source trees?
>>
> 
> Usually the preferred way is to add source directories to source (directory)
> sets, not directly to tasks. For example:
> 
> sourceSets {
>   main {
>     java {
>       srcDir "generated"
>     }
>   }
> }

Thanks.

I did this and it worked. I wasn't able to use "generated" (unless
that's just a simple example :) )

sourceSets {
  main {
    java {
      srcDir wsimport.generatedDir
    }
  }
}
compileJava.dependsOn wsimport

This is much cleaner than the other way of doing it, but didn't find the
bug :)

Thanks again,
David

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to