Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala 是否可以使用sbt只编译和运行一个文件?_Scala_Sbt - Fatal编程技术网

Scala 是否可以使用sbt只编译和运行一个文件?

Scala 是否可以使用sbt只编译和运行一个文件?,scala,sbt,Scala,Sbt,我有以下目录结构: - src/ |-main/ |-scala/ |- mypackage/ |- mymodule.scala |- anothermodule.scala 我想知道是否有可能像这样运行sbt: $sbt“runMain mypackage.mymodule” 无需编译其他源文件。因为其他文件是草稿,还不能编译。类似的东西可能会有用。像这样的东西可能有用。

我有以下目录结构:

- src/
  |-main/
     |-scala/
       |- mypackage/
          |- mymodule.scala
          |- anothermodule.scala       
我想知道是否有可能像这样运行sbt:

$sbt“runMain mypackage.mymodule”
无需编译其他源文件。因为其他文件是草稿,还不能编译。

类似的东西可能会有用。像这样的东西可能有用。