> The GroovyCompile task provides option 2 already, so you could just add
> 'GrailsPlugin.groovy' to the 'compileGroovy' task:
>
> sourceSets.main.groovy.srcDirs 'grails-api/conf', ...
> compileGroovy.source 'GrailsPlugin.groovy'
The ".source" seems to override the ".srcDirs" setting, so only the
plugin descriptor class is compiled. If this is a bug, I can package
up the project and attach it to an issue.
> Another would be to add the project dir to the main source set and use a
> selector closure to ignore everything else under project dir:
>
> groovy {
> srcDirs 'grails-api/conf', ...
> srcDir projectDir
> exclude { FileTreeElement fte -> fte.file.parentFile == projectDir &&
> file.name != 'GrailsPlugin.groovy' }
> }
I seem to be getting similar behaviour here. ".srcDir" overrides the
".srcDirs" setting.
Cheers,
Peter
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email