On 21/04/10 8:22 AM, Shay Banon wrote:
Hi,

   This used to work in gradle 0.8, and seems to stop working in 0.9.
Basically, I don't want to use the resources location, and prefer to place
my resources under the main and test 'java' locations. So, I placed this in
my build file:

sourceSets.main.resources.srcDirs 'src/main/java',
rootProject.file('config')
sourceSets.test.resources.srcDirs 'src/test/java'

It seems like this works for the main sourceSet (json files are copied over
to the build target), but does not work for the test resources (though I see
that its set correctly) and json files are not copied to the build test
target classes location.

This should still work. This is one of our integration test cases.

I wonder if you've run into http://jira.codehaus.org/browse/GRADLE-909. Could you try running 'gradle -C rebuild clean' to rebuild the caches, and see if the problem goes away.


--
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