2013-01-01から1年間の記事一覧

JD-Eclipse のフォーク版

tec

本家はEclipse4.2の場合、ソース有りJARと無しJARが混在するとエディタを選んでくれないらしい。http://mchr3k.github.io/jdeclipse-realign/

Antのタスクでsubversion

tec

Antタスクでビルドのとき、SVNからリビジョン取得とエクスポートしたかった。 svnantとAntがあればOK。 http://subclipse.tigris.org/svnant.html <path id="svnant.classpath"> <fileset dir="{env.SVNANT_LIB_DIR}" includes="**/*.jar"/> </path>

Antで文字列置換(filtering)

tec

system.properties を実行環境ごとに作りたい。 雛形.properties と 差込.properties を用意して、Antで作成。DEV.properties HOST=localhost ID=localuser IT.properties HOST=192.168.0.1 ID=ituser template.properties host=@HOST@ id=@ID@ tmp.dir=/tmp…

Log4jで特定のレベルのみ出力させる方法

tec

Log4j org.apache.log4j.varia.***filter 要素を Appender に追加する。 layout要素よりも後に記述する。 DenyAllFilter を組み合わせる。 LevelMatchFilter 特定のログレベル LevelRangeFilter ログレベルの範囲 StringMatchFilter ログメッセージでフィル…