2014-03-01から1日間の記事一覧

[jrunscript][Rhino] jrunscript/Rhino: スタックトレース取得

普通に throw new Error("msg") だと出力が寂しい。。。 デバッグのとき切ない。。。 // foo.js load("bar.js"); function foo_func(){ println("foo_func"); bar_func(); } try{ foo_func(); }catch(ex){ println("* something wrong *"); println(ex); for…

[ant]junitreportを書く場所

junit が結果XMLを生成する → そのXMLを入力として junitreport がHTMLを生成、の順番。 なので、junitreport 用のターゲットを別に作って test ターゲットの実行後にそれを実行とかでもいいはず。 <target name="test" depends="compile-test"> <junit printsummary="yes" fork="yes"> <classpath refid="classpath.test" /> <formatter type="xml" /> </formatter></classpath></junit></target>