scala – 将JVM args传递给SBT

我的SBT构建回应:

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

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

解决方法

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

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

相关文章

共收录Twitter的14款开源软件,第1页Twitter的Emoji表情 Tw...
Java和Scala中关于==的区别Java:==比较两个变量本身的值,即...
本篇内容主要讲解“Scala怎么使用”,感兴趣的朋友不妨来看看...
这篇文章主要介绍“Scala是一种什么语言”,在日常操作中,相...
这篇文章主要介绍“Scala Trait怎么使用”,在日常操作中,相...
这篇文章主要介绍“Scala类型检查与模式匹配怎么使用”,在日...