0

次の ant ターゲットを考えてみましょう。junit読みやすいように要約されています。

<target name="junit-tests" depends="clean, compile-tests">
    <junit fork="true" showoutput= ...>

        <classpath>...</classpath>
        <formatter.../>
        <jvmarg value=.../>

        <echo message="${test.dist.dir}"/>

        <batchtest todir=...>
            <fileset dir="${test.dist.dir}">
                <include name="**/*Junit.class"/>
            </fileset>
        </batchtest>
    </junit>
</target>       

変数の詳細なデバッグ出力を得るために、ファイルtest.dist.dir内の別のターゲットから次の行をコピーしました。build.xml

<echo message="${test.dist.dir}"/>

しかし、junit テスト ターゲット内では、次のように失敗します。

build.xml:94: junit doesn't support the nested "echo" element.

Junit ant タスクからデバッグ出力を出力するにはどうすればよいですか?

4

1 に答える 1