>> 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.
>>
>>
>
> No, this is the intended behaviour (for good or bad). Calling
> compileGroovy.source() explicitly throws away the default. I forgot about
> this. This one should work:
>
> sourceSets.main.groovy.srcDirs 'grails-api/conf', ...
> compileGroovy.source sourceSets.main.groovy
> compileGroovy.source 'GrailsPlugin.groovy'
>
> I wonder if discarding the default source is a good idea or not. Perhaps
> source() should always add to what's there, default or otherwise. You can
> always discard the source by doing source = ...

I think either approach is fine, just so long as the documentation
makes clear what the default behaviour is.

>> I seem to be getting similar behaviour here. ".srcDir" overrides the
>> ".srcDirs" setting.
>>
>>
>
> srcDir() is just an alias for srcDirs(), which is supposed to add the
> directory. What does sourceSets.main.groovy.srcDirs contain after this
> closure has executed?

This seems to be working now, but then I just installed the latest
snapshot. May have been user error, or may have been a bug that's
fixed. I'll keep an eye out for any other problem.

Cheers,

Peter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to