typesafehub/sbteclipse — Issue #95: EclipseCreateSrc.Resource and withSource do nothing
Author: mslinn
Created: 2012-02-20 15:10:15+00:00
State: open

Using today's release of sbteclipse 2.0.0, my ~/sbt/plugins/build.sbt contains:

````
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.0.0")

EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource

EclipseKeys.withSource := true
````

My project's directory tree is:

````
+---src
| +---main
| | +---java
| | | +---com
| | | | +---micronautics
| | +---resources
| | +---scala
| | | +---com
| | | | +---micronautics
| +---test
| | +---java
| | +---resources
| | +---scala
````

When I run:
````
sbt eclipse
````

The generated eclipse project does not include the src/main/resources directory, nor does it include test/main/resources in the build path. As well, the libraries do not have source associated with them.

I then added this line to the build.sbt at the top of the project:

````
EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource

EclipseKeys.withSource := true
````

Again, the generated eclipse project does not include the src/main/resources directory, nor does it include test/main/resources in the build path. Library sources are not attached.

Finally, running the following does not attach library sources:

````
sbt 'eclipse with-source=true'
````

Mike