On 11/02/10 10:40 PM, Rene Groeschke wrote:
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.
Could you send in the stack trace for the FileNotFoundException?
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email