[GRADLE-1027] Support configuration of additional classpath containers in eclipseCp task in the Eclipse plugin Created: 11/Jul/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: Improvement
Reporter: Stefan De Boey Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 Description   

When generating Eclipse project files for Scala projects, the Scala classpath container is not added to the .classpath config file. The only classpath container that is currently written to the .classpath file is the JRE classpath container (org.eclipse.jdt.launching.JRE_CONTAINER).

I see 2 possible solutions to solve this:

  • add an extra property (eg classpathContainers) to the EclipseClasspath task which we can use to configure extra classpath containers. this solution doesn't automatically add the Scala classpath container, the user should configure this in his own build script, when needed.
  • the 2nd solution builds upon the first solution and automatically adds the scala classpath container to the Eclipse classpath configuration when the project is a scala project (uses the scala plugin)

i have already implemented the 2nd solution for my own needs. if you want i can provide a patch.

you can also see the following message on the mailing lists for more info: http://old.nabble.com/scala-plugin-%2B-eclipse-plugin-ts28922577.html#a28922577


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