sbt-eclipse icon indicating copy to clipboard operation
sbt-eclipse copied to clipboard

eclipseOutput and multiple targets

Open godenji opened this issue 11 years ago • 1 comments

eclipseOutput allows us to define a single target, but when you have class and test output targets this setting globs everything under a single target directory.

Not the end of the world, but would be nice if, for example, sbteclipse could write Play's class and test targets to the defaults "classes/" and "test-classes/"

Thoughts? Not sure if this is a bug per se, let me know if I'm missing the boat somewhere.

Thanks.

godenji avatar Mar 31 '14 11:03 godenji

The following works great for me (using in ThisBuild here because of a multi-module setup):

EclipseKeys.eclipseOutput in ThisBuild in Compile := Some(".target/classes")

EclipseKeys.eclipseOutput in ThisBuild in Test := Some(".target/test-classes")

It results in the following .classpath:

  <classpathentry output=".target\classes" kind="src" path="app"/>
  <classpathentry output=".target\test-classes" kind="src" path="test"/>

sebdotv avatar Sep 03 '14 08:09 sebdotv