Scala日記

Scalaの備忘録。ときどき研究の話。

2015-07-02から1日間の記事一覧

xmlファイルをstdinから読み込む

import scala.xml.parsing.ConstructingParser val doc = ConstructingParser.fromSource(Source.stdin, preserveWS = true).document()

sbtで実行するときにstdoutにsbtのログを出さないようにする

sbt経由でプログラムを実行すると [info] Loading project definition from... [info] Set current project to ... [info] Running ... や [success] Total time: 3 s, completed 2015/07/... などが「標準出力」に出てしまって、出力をリダイレクトして処理…