将JVM args传递给SBT

时间:2011-05-20 01:53:42

标签: scala sbt jvm-arguments

我的SBT构建正在回应:

[error] Note: Some input files use unchecked or unsafe operations.
[error] Note: Recompile with -Xlint:unchecked for details.

如何将-Xlint:unchecked参数传递给SBT调用的javac进程?

1 个答案:

答案 0 :(得分:6)

请参阅http://code.google.com/p/simple-build-tool/wiki/BuildConfiguration#Compile_Options

override def compileOptions = super.compileOptions ++ 
  compileOptions("-Xlint:unchecked")