How can a Scala compiler option be appended to scalacOptions in sbt?

Viewed 6117

I use sbt 0.10.

I have the following setting in .sbt file:

scalacOptions += "-usejavacp"

The problem is that when the Scala compiler get executed and the scalacOptions is set:

[debug] Calling Scala compiler with arguments  (CompilerInterface):
[debug]         -usejavacp
[debug]         -d
[debug]         D:\project\target\scala-2.8.1.final\classes
[debug]         -bootclasspath
...

the -usejavacp parameter appears before the actual Scala jars that results in this error:

scala.collection.mutable.ListBuffer does not take type parameters

Is there a way the parameter is appended and not prepended? I also tried the ++= Array("-usejavacp") but the result is the same.

2 Answers
Related