[GRADLE-843] EclipseCp doesn't generate references to non-default sourceSet directories Created: 05/Mar/10 Updated: 04/Jan/13 Resolved: 24/Nov/10 |
|
| Status: | Resolved |
| Project: | Gradle |
| Affects Version/s: | 0.9 |
| Fix Version/s: | 0.9-rc-1 |
| Type: | Bug | ||
| Reporter: | Raul Piaggio | Assignee: | Hans Dockter |
| Resolution: | Fixed | Votes: | 0 |
| Description |
|
If, for example, the following is included in build.gradle: sourceSets { then running "gradle eclipseCp" should generate a .classpath file that includes: but it doesn't. |
| Comments |
| Comment by René Gröschke (Inactive) [ 05/Mar/10 ] |
|
I think the resulting classpath entry must depend on the type of project. in a java project src/init/java is okay, but the default for groovy projects should be src/init/groovy. same with scala. |
| Comment by Raul Piaggio [ 05/Mar/10 ] |
|
Agreed. Also happens if a sourceSet has multiple source directories. Eg: Only a reference to src/main/java is generated (in this case the "output" attribute shouldn't be present). |
| Comment by Hans Dockter [ 17/Apr/10 ] |
|
Besides that this should work out of the box, there should be always hooks for generic customizing the generated eclipse files. See: http://gradle.markmail.org/thread/og5dvayx2b4y6ejy |
| Comment by Raul Piaggio [ 27/Jul/10 ] |
|
Thank you |