I found the cause. I use the Groovy plugin and the resource is a .groovy file. I placed a test.txt resource in src/test/resources - this file is copied when running 'gradle clean processTestResources'.
I'll rename the Groovy resource; I'll create a JIRA issue as well, because this used to work in 0.7. Levi On Tue, Sep 29, 2009 at 10:06 AM, Hans Dockter <[email protected]> wrote: > > On Sep 29, 2009, at 9:57 AM, Levi Hoogenberg wrote: > > Hi, >> >> first, congratulations on the 0.8 release. I just tried it with one of my >> projects but my tests fail because they can't find their resources. It seems >> like processTestResources does not copy the src/test/resources files to >> build/classes/test. Should I move my resources to a different location? (The >> Eclipse plugin still recognises the src/test/resources folder as source >> folder.) >> > > Interesting. I can't reproduce this. I have modified the > samples/java/quickstart project by adding a src/test/resources directory > with some resource file. Then I did a 'gradle clean test'. The resource > files shows up in build/classes/test/. > > - Hans > > -- > Hans Dockter > Gradle Project Manager > http://www.gradle.org > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >
