[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 {
init
}

then running "gradle eclipseCp" should generate a .classpath file that includes:
<classpathentry kind="src" path="src/init/java" output="build/classes/init"/>

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:
compileJava {
source 'src/main/java', 'src/management/java', 'src/modules/java'
}

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

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