sbt-eclipse
sbt-eclipse copied to clipboard
eclipseOutput and multiple targets
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.
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"/>