Can someone tell me how to insert the use of <formatter> into the following Ant target?

This task looks like a <java> task to Ant so I can't use <formatter>. Can I get around this, or do I need to completely restructure my build.xml?


    <target name="runtests" depends="compiletests" if="junit.present">
        <java fork="yes" classname="junit.textui.TestRunner"
            taskname="junit" failonerror="true">
            <arg value=""/>
                <pathelement location="build/lib/${}.jar" />
                <pathelement location="build/testcases" />
                <pathelement path="" />
                <pathelement path="${java.class.path}" />

Neil O'Connor,
Nortel Networks Corporation.