[GRADLE-1502] eclipse plugin creates incorrect .classpath when any source dir is external Created: 30/Apr/11  Updated: 04/Jan/13  Resolved: 30/Apr/11

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.0-milestone-4

Type: Bug
Reporter: Szczepan Faber Assignee: Szczepan Faber
Resolution: Fixed Votes: 0


 Description   

When any of the source dirs is external (example from the grails project):

sourceSets {
  main { groovy.srcDirs = ['../groovySrc'] }
}

Actual result:

The output .classpath file contains paths to 'external' folder, e.g. folder that lives outside of the eclipse project folder. Source directory references to external folders (both relative or absolute) are not supported by eclipse. Hence there are path errors when project is opened in Eclipse and user must fix them manually.

Expected result:

External source folders should be created in eclipse via 'linked resources' aka 'links' feature. Those linked resources are maintained in .project file. Then the .classpath should contain source folder reference to the linked resource. This way there are no path errors on project import and the correct sources are on the path.


Generated at Wed Jun 30 11:57:08 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.