sbt (simple build tool) をLinuxにインストール

2010-11-17

sbt (simple build tool) をLinuxにインストール

作業メモ さて、sbtとは、scala用のビルドツール。 http://en.wikipedia.org/wiki/Simple_Build_Tool   http://code.google.com/p/simple-build-tool/ simple build toolのwikiにインストール方法とか書いてあるので参考にしてインストール。

1. ダウンロード

  ユーザのbinディレクトリ(無ければ作る)にダウンロード

1
2
3
4
mkdir ~/bin
cd ~/bin
wget "http://simple-build-tool.googlecode.com/files/sbt-launch-0.7.4.jar"
ln -s sbt-launch-0.7.4.jar sbt-launch.jar

   

2. 実行ファイル作成

  同じディレクトリに実行ファイルを作成

1
vi ~/bin/sbt

記述する内容

1
java -Xmx512M -jar `dirname $0`/sbt-launch.jar "$@"

実行権限付与

1
chmod u+x ~/bin/sbt

※パスは通してね。