【问题标题】:Why isnt' sbt giving me the option to choose what to run?为什么 sbt 没有让我选择运行什么?
【发布时间】:2014-09-02 01:09:16
【问题描述】:

我有一个使用 sbt 的 playframework 应用程序。

当我在 sbt 中输入 run 时,它总是运行我的 playframework 应用程序。

在我的项目中,我有一个命名空间,例如:

package com.example.com.tools

object Seeds extends App {

// code here
}

当我在 sbt 中输入 run 时:

run

它不应该给我一个可供选择的应用程序列表吗?

我也尝试过:运行 com.example.tools.Seeds 但它显示的 args 数量错误。

sbt 版本 13.5

【问题讨论】:

  • 您不想将任何参数传递给您的主程序。正确吗?

标签: scala playframework sbt


【解决方案1】:
> runMain com.example.tools.Seeds

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-03
    • 2017-12-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-16
    • 2020-04-17
    相关资源
    最近更新 更多