问题描述
我正在尝试将脱机安装与 Play框架 2.3.2. com/activator> Typesafe激活器 1.2.3.每篇文档都告诉我,它在幕后使用sbt来构建和运行项目.
I am trying out the Play Framework 2.3.2 using the offline installation with Typesafe Activator 1.2.3. Every piece of documentation tells me that it's using sbt under the covers to build and run projects.
此sbt在哪里安装?它位于包含Activator安装程序的解压缩文件夹中的某个位置吗?
Where is this sbt located/installed? Is it somewhere in the unzipped folder that contained the Activator installation?
如何从命令行启动sbt?它不在PATH
上,因为运行locate sbt
找不到任何内容.
How do I start sbt from command line? It's not on the PATH
as running locate sbt
finds nothing.
推荐答案
activator-launcher-<version>.jar
实际上是sbt启动器,其中嵌入了其他属性文件.
The activator-launcher-<version>.jar
is actually the sbt launcher with an additional properties file embedded.
如果您运行activator shell
(或您可能已在sbt中使用过的任何其他命令,例如compile
或package
),则说明您正在启动sbt本身,而sbt本身又会执行这些命令.
If you run activator shell
(or any other command you may have used with sbt like compile
or package
) you're starting sbt itself that in turn executes the commands.
这是启动应用程序的路径:
Here's the path of applications that get launched:
-
activator ui
启动激活程序UI,该UI启动要构建的sub-sbt进程 -
activator new
启动激活程序模板创建终端应用程序. -
activator shell
或activator <sbt input>
自行启动sbt.
activator ui
launches the activator UI which launches a sub-sbt process to buildactivator new
launches the activator template creation terminal application.activator shell
oractivator <sbt input>
launches sbt itself.
此外,activator
脚本尝试检测它是否从"UI"上下文运行,例如从Windows资源管理器或OSX Finder双击.如果是这样,脚本将自动以UI模式启动.
In addition, the activator
script attempts to detect if it's run from a "UI" context, e.g. double-clicking from Windows Explorer or OSX Finder. If so, the script will automatically start in UI mode.
这篇关于Typesafe Activator中的sbt在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!