This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Sbteclipse - skip some source entries in the Eclipse project

1 reply
vlad.ureche
Joined: 2011-03-17,
User offline. Last seen 1 year 26 weeks ago.
Hello everyone,

I have a newbie question about sbteclipse: In the project I am working on, there are Scala sources but no Java sources at all. Is there a way to configure sbteclipse not to generate project source entries for Java?
The things I tried, without success:
 - setting the javaSources in {Compile. Test} to Nil -- the setting expects a java.io.File, and will only settle for that
 - messing with the sbteclipse createSrc setting, which either selects all sources or none

Is there a way to instruct sbteclipse to skip the Java sources in the Eclipse project?

Thanks,
Vlad
vlad.ureche
Joined: 2011-03-17,
User offline. Last seen 1 year 26 weeks ago.
Re: Sbteclipse - skip some source entries in the Eclipse project

I received a great answer to my question on the sbt mailing list, so anyone interested in this question (or a quick sbt dependency lesson), please read the thread on the sbt mailing list.

Cheers,
Vlad

On Tue, Feb 7, 2012 at 2:46 PM, Vlad Ureche <vlad.ureche@gmail.com> wrote:
Hello everyone,

I have a newbie question about sbteclipse: In the project I am working on, there are Scala sources but no Java sources at all. Is there a way to configure sbteclipse not to generate project source entries for Java?
The things I tried, without success:
 - setting the javaSources in {Compile. Test} to Nil -- the setting expects a java.io.File, and will only settle for that
 - messing with the sbteclipse createSrc setting, which either selects all sources or none

Is there a way to instruct sbteclipse to skip the Java sources in the Eclipse project?

Thanks,
Vlad


Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland