That worked! It seems so simple now.
Jas
Peter Ledbrook wrote:
>
>> I am working on a GWT Plugin for Gradle and one of the things I trying to
>> work through is how to override the Java Convention for the source
>> directories.
>> The GWT Eclipse plugin and the webAppCreator utility both follow the
>> pattern
>> of having a 'src' directory where the default package starts. I have
>> tried
>> clearing the default 'src/main/java' from the convention but, haven't
>> found
>> a successful way to do this. This would make the plugin compatible with
>> the
>> tools already supporting GWT and easier to use the existing convention
>> support in the tasks that will build the GWT source and run GWT's dev
>> mode.
>
> I don't know about modifying the convention object, but one approach
> you can take is to modify the sourceSets definition for the Java
> plugin:
>
> sourceSets {
> main {
> java {
> srcDirs = [ "src" ]
> }
> }
> }
>
> You can find out a bit more about source sets in the user guide.
>
> Cheers,
>
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
--
View this message in context:
http://old.nabble.com/Question-related-to-source-directories-when-extending-Java-WarPlugin-tp27845533p27845920.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email