Skip to content

Commit

Permalink
Implemented correct handling of Scala Compiler dependency.
Browse files Browse the repository at this point in the history
Both Scala library and Scala compiler are treated in
a special way by Scala IDE and .classpath file must
be configured differently for those two dependencies.

So far only Scala library has been treated in a special
way in sbteclipse plug-in. Added the same kind of logic
for Scala compiler.

Fixes sbt#44.

Signed-off-by: Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com>
  • Loading branch information
gkossakowski committed Oct 19, 2011
1 parent f14bcce commit 8e75337
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/scala/com/typesafe/sbteclipse/SbtEclipsePlugin.scala
Expand Up @@ -215,6 +215,10 @@ object SbtEclipse {
}
}
def libEntries = libraries flatMap {
//Scala compiler (and library) are treated as special kind of dependencies in Scala IDE
case Library(file, _) if file.getName == "scala-compiler.jar" =>
logDebug("Creating lib entry for Scala compiler.")
<classpathentry kind="con" path="org.scala-ide.sdt.launching.SCALA_COMPILER_CONTAINER"/>
case Library(Path(binary), Some(Path(sources))) =>
logDebug("""Creating lib entry with source attachment for dependency "%s".""" format binary)
<classpathentry kind="lib" path={ binary } sourcepath={ sources }/>
Expand Down

0 comments on commit 8e75337

Please sign in to comment.