Activator中的sbt在哪里

Activator中的sbt在哪里

本文介绍了Typesafe Activator中的sbt在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在尝试将脱机安装与 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中使用过的任何其他命令,例如compilepackage),则说明您正在启动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:

  1. activator ui启动激活程序UI,该UI启动要构建的sub-sbt进程
  2. activator new启动激活程序模板创建终端应用程序.
  3. activator shellactivator <sbt input>自行启动sbt.
  1. activator ui launches the activator UI which launches a sub-sbt process to build
  2. activator new launches the activator template creation terminal application.
  3. activator shell or activator <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在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 22:15