> 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


Reply via email to