On 18/02/10 10:22 PM, Peter Ledbrook wrote:
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.
OK, the srcDirs property seems to be configured fine, but if I have
something like this:

   def grailsAppDirs = file("grails-app").listFiles({ f ->  f.directory
} as FileFilter)
   srcDirs grailsAppDirs, "src/groovy"
   srcDir("src/java")
   srcDir(".").include("*GrailsPlugin.groovy")

srcDir() returns this, so the last line above is doing:

groovy {
    srcDir('.')
    include('*GrailsPlugin.groovy')
}

Which sets a shared include for all the source dirs. At the moment, you can't set includes/excludes on a per source dir basis (as you can for the Copy task, say). This would be a good thing to add.


--
Adam Murdoch
Gradle Developer
http://www.gradle.org


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

   http://xircles.codehaus.org/manage_email


Reply via email to