2006-08-23から1日間の記事一覧

junitタスクが実行できないのはANT_HOME/lib に junit.jarがないから

マシンを買い換える度に間違うのだけど、Antのjunitタスクを実行しようとするとこう言って怒られる。 BUILD FAILED Could not create task or type of type: junit. Ant could not find the task or a class this task relies upon. This is common and has …

クラスパスを画面にechoする

タスクが見ている classpath の内容を見たい場合どうするか。 "compile.classpath"というidでクラスパスを定義しているとして、 <path id="compile.classpath"> : </path>その内容は以下のようにして標準出力に表示できる。 <property name="cp" refid="compile.classpath"/> <echo message="${cp}"/></echo></property>