takezoeさんのツールを使う。
https://github.com/takezoe/stepcounter
問題点
配布しているjarはGroovy非対応版
大雑把な手順
- 自分でビルドする
- 使う
必要なツール
maven
java (maven入っていればjavaも入っているはずですが念の為。。)
ソース取得
-
https://github.com/takezoe/stepcounter/archive/master.zip
(GitHubからzipダウンロード) - 解凍する
ビルド
cd stepcounter-master/core/stepcounter
mvn install -DskipTests=true
ビルド成果物
target/stepcounter-3.0.4-SNAPSHOT-jar-with-dependencies.jar
これを適当なディレクトリにコピペする。
cp target/stepcounter-3.0.4-SNAPSHOT-jar-with-dependencies.jar ~/
カウントする
java -cp ~/stepcounter-3.0.4-SNAPSHOT-jar-with-dependencies.jar jp.sf.amateras.stepcounter.Main src/main/groovy/