# Adding a resource-link to the eclipse .classpath file

**URL:** <https://discuss.gradle.org/t/adding-a-resource-link-to-the-eclipse-classpath-file/4939>\
**Category:** Old Forum Archive\
**Created:** [January 25, 2014, 9:13pm UTC](https://discuss.gradle.org/t/adding-a-resource-link-to-the-eclipse-classpath-file/4939 "2014-01-25T21:13:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael4](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Michael4](https://discuss.gradle.org/u/Michael4)\
**Post date:** [January 25, 2014, 9:13pm UTC](https://discuss.gradle.org/t/adding-a-resource-link-to-the-eclipse-classpath-file/4939/1 "2014-01-25T21:13:00Z")

</div>

Hi,

By adding the following lines to my build.gradle:

```gradle
eclipse {
  project {
    linkedResource name: 'src-core', type: '2', locationUri: 'MY_ROOT/project-core/src/main/java'
    }

```

the .project file has been successfully changed with the new lines:

```gradle
<linkedResources>
  <link>
   <name>src-core</name>
   <type>2</type>
   <locationURI>MY_ROOT/project-core/src/main/java</locationURI>
  </link>
 </linkedResources>

```

Unfortunately it is is not being added the the .classpath file which is why eclipse is not recognizing this as a java-source-folder.

I have done quite a bit of research now and cannot find a solution. Has anyone attempted this and got it working?

Any help would be greatly appreciated!

Best regards, Michael

---

<div class="post-metadata">

**Author:** ![Michael4](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Michael4](https://discuss.gradle.org/u/Michael4)\
**Post date:** [February 6, 2014, 1:27pm UTC](https://discuss.gradle.org/t/adding-a-resource-link-to-the-eclipse-classpath-file/4939/2 "2014-02-06T13:27:00Z")

</div>

No hint?

---

<div class="post-metadata">

**Author:** ![evan\_ruff](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/evan_ruff/32/1467_2.png) [@evan\_ruff](https://discuss.gradle.org/u/evan_ruff)\
**Post date:** [August 11, 2014, 7:30pm UTC](https://discuss.gradle.org/t/adding-a-resource-link-to-the-eclipse-classpath-file/4939/3 "2014-08-11T19:30:00Z")

</div>

This is stinging me as well.
