# Java processResources in eclipse

**URL:** <https://discuss.gradle.org/t/java-processresources-in-eclipse/41099>\
**Category:** Help/Discuss\
**Created:** [October 1, 2021, 6:28am UTC](https://discuss.gradle.org/t/java-processresources-in-eclipse/41099 "2021-10-01T06:28:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sveriSAG](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@sveriSAG](https://discuss.gradle.org/u/sveriSAG)\
**Post date:** [October 1, 2021, 6:28am UTC](https://discuss.gradle.org/t/java-processresources-in-eclipse/41099/1 "2021-10-01T06:28:56Z")

</div>

Hi,

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:

```gradle
processResources {
	from(sourceSets.main.java.srcDirs[0]) {
		include 'com/softwareag/rules/functions/BusinessRulesCustomFunctions.java'
	}
}

```

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 BusinessRulesCustomFunctions.java file in the test runtime.

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

Thanks,  
Sven
