Eclipse linked folder added with extra '_' after every Gradle refresh

Following examples, I’m adding a link from a folder in one project into another project.

eclipse {
    project {    
        linkedResource name: 'src/main/bin', type: '2', location: new File(project(':projectName').projectDir, 'src/main/bin').absolutePath
    }
}

When I did a ‘Gradle -> Refresh’ the folder was created.

src/main/bin

But now, for every subsequent ‘Gradle -> Refresh’ I get another linked folder created, but with an extra ‘_’ at the end.

src/main/bin
src/main/bin_
src/main/bin__

As seen in .project (slightly edited to obscure names).

<linkedResources>
	<link>
		<name>src/main/bin</name>
		<type>2</type>
		<location>/Users/.../projectName/src/main/bin</location>
	</link>
	<link>
		<name>src/main/bin_</name>
		<type>2</type>
		<location>/Users/.../projectName/src/main/bin</location>
	</link>
	<link>
		<name>src/main/bin__</name>
		<type>2</type>
		<location>/Users/.../projectName/src/main/bin</location>
	</link>
</linkedResources>

Eclipse Mars.2, Buildship 1.0.12.

Hi Mark,

Thanks for the report. I was able to reproduce the problem. We will try to fix the issue soon. If you are interested, you can subscribe to the related Bugzilla entry.

Thanks Donát. I appreciate your quick response :slight_smile:

We’ve implemented a fix for this issue. Would you mind installing our latest snapshot and validate if the linked resources functionality works as expected? The update site is available here: http://download.eclipse.org/buildship/updates/e45/snapshots/1.0/1.0.15.v20160415-1516-s

1 Like

I confirm that updating to that shapshot resolves this issue for me.
Thank you all.