Java processResources in eclipse


I have a multi project java build.
Project A has a dependency to project B and also to some java files that are located in the src folder of project B.
I declare that using processResources:

processResources {
	from([0]) {
		include 'com/softwareag/rules/functions/'

My code uses these java classes and when running a test with gradle everything works as expected. But when I generate the eclipse project files (gradlew ecl) and run the same test from eclipse, eclipse does not include the file in the test runtime.

Any ideas how I can tell eclipse to include it too?