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.