- Download sbt-launch.jar
- Copy/paste sbt-launch.jar onto you share directory /usr/share/java/
- Create the shell script sbt in /usr/local/bin to launch this jar.
#!/bin/sh if test -f ~/.sbtconfig; then . ~/.sbtconfig fi java -Xmx512M ${SBT_OPTS} -jar /usr/share/java/sbt-launch.jar
- Run sbt console from the command-line
gregory@gregory:/tmp$ sbt [info] Set current project to default-8c3933 (in build file:/tmp/) > version [info] 0.1 > console [info] Starting scala interpreter... [info] Welcome to Scala version 2.8.1.final (OpenJDK Server VM, Java 1.6.0_0). Type in expressions to have them evaluated. Type :help for more information. scala> 1+1 res0: Int = 2 scala> exit [success] Total time: 14 s, completed 23 juil. 2011 15:35:24 > exit
samedi 23 juillet 2011
Set up SBT in a minute
This message describes how to set up SBT.
The basic steps are :
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire