2012-01-16 21:24:19 +01:00
|
|
|
sbt: the launcher
|
2011-08-14 19:59:47 +02:00
|
|
|
==================
|
|
|
|
|
|
2011-08-25 23:55:22 +02:00
|
|
|
An alternative script for running [sbt](https://github.com/harrah/xsbt).
|
2011-12-07 22:15:31 +01:00
|
|
|
It works with sbt 0.7.x projects as well as 0.10+. If you're in an sbt
|
|
|
|
|
project directory, the runner will figure out the versions of sbt and
|
|
|
|
|
scala required by the project and download them if necessary.
|
2011-08-25 23:55:22 +02:00
|
|
|
|
2011-12-07 22:15:31 +01:00
|
|
|
Sample usage: create a new project using a snapshot version of sbt as
|
|
|
|
|
well as a snapshot version of scala, then run the sbt "about" command.
|
2011-08-14 19:59:47 +02:00
|
|
|
|
2011-12-07 22:15:31 +01:00
|
|
|
% sbt -v -sbt-snapshot -210 -sbt-create about
|
|
|
|
|
Detected sbt version 0.11.3-SNAPSHOT
|
|
|
|
|
sbt snapshot is 0.11.3-20111207-052114
|
2011-08-14 20:17:28 +02:00
|
|
|
# Executing command line:
|
|
|
|
|
java
|
|
|
|
|
-XX:+CMSClassUnloadingEnabled
|
2011-12-07 22:15:31 +01:00
|
|
|
-Xms1536m
|
|
|
|
|
-Xmx1536m
|
|
|
|
|
-XX:MaxPermSize=384m
|
|
|
|
|
-XX:ReservedCodeCacheSize=192m
|
|
|
|
|
-Dfile.encoding=UTF8
|
2011-08-14 20:17:28 +02:00
|
|
|
-jar
|
2011-12-07 22:15:31 +01:00
|
|
|
/r/sbt-extras/.lib/0.11.3-SNAPSHOT/sbt-launch.jar
|
|
|
|
|
"set resolvers in ThisBuild += ScalaToolsSnapshots"
|
2011-08-25 23:55:22 +02:00
|
|
|
"++ 2.10.0-SNAPSHOT"
|
2011-08-25 18:34:14 +02:00
|
|
|
about
|
|
|
|
|
|
2011-12-07 22:15:31 +01:00
|
|
|
[info] Loading global plugins from /Users/paulp/.sbt/plugins
|
|
|
|
|
[info] Set current project to default-71999b (in build file:/Users/paulp/Desktop/new/)
|
2011-08-25 18:34:14 +02:00
|
|
|
[info] Reapplying settings...
|
2011-12-07 22:15:31 +01:00
|
|
|
[info] Set current project to default-71999b (in build file:/Users/paulp/Desktop/new/)
|
2011-08-25 23:55:22 +02:00
|
|
|
Setting version to 2.10.0-SNAPSHOT
|
2011-12-07 22:15:31 +01:00
|
|
|
[info] Set current project to default-71999b (in build file:/Users/paulp/Desktop/new/)
|
|
|
|
|
[info] This is sbt 0.11.3-20111207-052114
|
|
|
|
|
[info] The current project is {file:/Users/paulp/Desktop/new/}default-71999b
|
2011-08-25 23:55:22 +02:00
|
|
|
[info] The current project is built against Scala 2.10.0-SNAPSHOT
|
2011-12-07 22:15:31 +01:00
|
|
|
[info] sbt, sbt plugins, and build definitions are using Scala 2.9.1
|
2011-08-14 20:17:28 +02:00
|
|
|
|
|
|
|
|
Current -help output:
|
|
|
|
|
|
2011-08-14 20:04:39 +02:00
|
|
|
Usage: sbt [options]
|
|
|
|
|
|
2011-12-07 22:15:31 +01:00
|
|
|
-h | -help print this message
|
|
|
|
|
-v | -verbose this runner is chattier
|
|
|
|
|
-d | -debug set sbt log level to debug
|
|
|
|
|
-no-colors disable ANSI color codes
|
|
|
|
|
-sbt-create start sbt even if current directory contains no sbt project
|
|
|
|
|
-sbt-dir <path> path to global settings/plugins directory (default: ~/.sbt)
|
|
|
|
|
-sbt-boot <path> path to shared boot directory (default: ~/.sbt/boot in 0.11 series)
|
|
|
|
|
-ivy <path> path to local Ivy repository (default: ~/.ivy2)
|
|
|
|
|
-mem <integer> set memory options (default: 1536, which is -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=192m)
|
|
|
|
|
-no-share use all local caches; no sharing
|
|
|
|
|
-offline put sbt in offline mode
|
|
|
|
|
-jvm-debug <port> Turn on JVM debugging, open at the given port.
|
2011-08-25 23:55:22 +02:00
|
|
|
|
2011-09-01 00:00:58 +02:00
|
|
|
# sbt version (default: from project/build.properties if present, else latest release)
|
2011-08-25 23:55:22 +02:00
|
|
|
-sbt-version <version> use the specified version of sbt
|
|
|
|
|
-sbt-jar <path> use the specified jar as the sbt launcher
|
2011-09-04 21:25:45 +02:00
|
|
|
-sbt-rc use an RC version of sbt
|
2011-08-25 23:55:22 +02:00
|
|
|
-sbt-snapshot use a snapshot version of sbt
|
|
|
|
|
|
|
|
|
|
# scala version (default: latest release)
|
2011-12-07 22:15:31 +01:00
|
|
|
-28 use 2.8.2
|
2011-09-01 00:00:58 +02:00
|
|
|
-29 use 2.9.1
|
2011-08-25 23:55:22 +02:00
|
|
|
-210 use 2.10.0-SNAPSHOT
|
|
|
|
|
-scala-home <path> use the scala build at the specified directory
|
|
|
|
|
-scala-version <version> use the specified version of scala
|
2011-08-14 20:04:39 +02:00
|
|
|
|
2011-12-07 22:15:31 +01:00
|
|
|
# java version (default: java from PATH, currently java version "1.6.0_29")
|
2011-08-25 23:55:22 +02:00
|
|
|
-java-home <path> alternate JAVA_HOME
|
2011-08-14 20:04:39 +02:00
|
|
|
|
2011-08-25 18:34:14 +02:00
|
|
|
# jvm options and output control
|
|
|
|
|
JAVA_OPTS environment variable, if unset uses "-Dfile.encoding=UTF8"
|
2011-12-07 22:15:31 +01:00
|
|
|
SBT_OPTS environment variable, if unset uses "-XX:+CMSClassUnloadingEnabled"
|
2011-08-25 23:55:22 +02:00
|
|
|
.sbtopts if this file exists in the sbt root, it is prepended to the runner args
|
|
|
|
|
-Dkey=val pass -Dkey=val directly to the java runtime
|
|
|
|
|
-J-X pass option -X directly to the java runtime (-J is stripped)
|
2011-08-14 20:04:39 +02:00
|
|
|
|
2011-08-25 18:34:14 +02:00
|
|
|
In the case of duplicated or conflicting options, the order above
|
|
|
|
|
shows precedence: JAVA_OPTS lowest, command line options highest.
|
2011-09-14 19:01:48 +02:00
|
|
|
|
|
|
|
|
|
2012-01-16 21:24:19 +01:00
|
|
|
## Native Packages ##
|
2011-09-14 19:01:48 +02:00
|
|
|
|
2012-01-16 21:24:19 +01:00
|
|
|
This project also includes native packages to run SBT for
|
2012-01-16 21:25:15 +01:00
|
|
|
|
|
|
|
|
* Windows
|
|
|
|
|
* RedHat (rpm)
|
|
|
|
|
* Debian (deb)
|
|
|
|
|
* Homebrew (coming soon!)
|
2011-09-14 19:01:48 +02:00
|
|
|
|
2012-01-16 21:24:19 +01:00
|
|
|
Locations for download to be available soon.
|
2011-09-14 19:01:48 +02:00
|
|
|
|