Hi guys,
I'm trying to migrate a tiny project build to gradle and have issues with
resolving test resources. Actually I have two eclipse projects
'TinyProject' and 'TinyProjectTests'. As expected, the TinyProject
contains productive code and TinyProjectTests the junit tests for the
project. In my build script located in the TinyProject folder I configured
my sourcesets in the following way:

...
sourceSets.main.java.srcDirs = ['src']
sourceSets.main.resources.srcDirs = ['config']
sourceSets.test.java.srcDirs = ['../TinyProjectTests/src']
sourceSets.test.resources.srcDirs = ['../TinyProjectTests/src']
...

When running the a test like the following one

@RunWith(value = SpringRunner.class)
@Configuration(locations = {"applicationContext.xml"})
public class SpringStartupTest{
...
}

I get a FileNotFoundException for 'applicationContext.xml'. The file is
located in ../TinyProjectTests/src and also (as expected) in
TinyProject/build/classes/test. It looks like a bug or I am missing
something obvious. Any Idea what the problem is? I'm using a gradle
snapshot
(0.9-20100209043142+0000) from the gradle hudson.

regards,
René


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

    http://xircles.codehaus.org/manage_email


Reply via email to