[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. |