title: Empty Junit reports from ant
body: <p>I am trying to use ant to run junit tests and generate reports. 
  I am able to successfully run the tests but the report files are empty. </p>
  
  <p>What am I doing wrong ? </p>
  
  <p>This is my build.xml : </p>
  
  <pre><code>&lt;project name="JunitTest" default="test" basedir="."&gt; 
      &lt;property name="testdir" location="." /&gt; 
      &lt;property name="srcdir" location="." /&gt; 
      &lt;property name="full-compile" value="true" /&gt; 
      &lt;property name="test.reports" value="./reports" /&gt;
  
      &lt;path id="classpath.base"/&gt;
      &lt;path id="classpath.test"&gt;
  
      &lt;pathelement location="${testdir}" /&gt;
      &lt;pathelement location="${srcdir}" /&gt;
  
      &lt;path refid="classpath.base" /&gt;
  
      &lt;/path&gt; 
  
      &lt;target name="clean" &gt;
          &lt;delete verbose="${full-compile}"&gt; 
              &lt;fileset dir="${testdir}" includes="**/*.class" /&gt;
          &lt;/delete&gt; `
      &lt;/target&gt;
  
      &lt;target name="compile" depends="clean"&gt;
          &lt;javac srcdir="${srcdir}" destdir="${testdir}" verbose="${full-compile}" &gt;
              &lt;classpath refid="classpath.test"/&gt;
          &lt;/javac&gt;
      &lt;/target&gt;
  
      &lt;target name="test" depends="compile"&gt;
          &lt;junit&gt;
              &lt;classpath refid="classpath.test" /&gt;
              &lt;formatter type="brief" usefile="false" /&gt;
              &lt;test name="com.tests.nav1" /&gt;
          &lt;/junit&gt;
  
          &lt;junitreport todir="${test.reports}"&gt;
              &lt;fileset dir="${test.reports}"&gt;
                  &lt;include name="TEST-*.xml" /&gt;
              &lt;/fileset&gt;
              &lt;report todir="${test.reports}" /&gt;
          &lt;/junitreport&gt;
      &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>and this is the output on the console : </p>
  
  <pre><code>[junit] Using CLASSPATH C:\eclipse\eclipse-java-helios-SR1-win32\eclipse\JunitWS\SeleniumTraining\src;C:\jars\junit.jar;C:\ant\lib\ant-launcher.jar;C:\ant\lib\ant.jar;C:\ant\lib\ant-junit.jar;C:\ant\lib\ant-junit4.jar 
  [junit] Testsuite: com.tests.nav1 
  [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 48.187 sec 
  [junit] ------------- Standard Output --------------- 
  [junit] testnav2 
  [junit] ------------- ---------------- --------------- 
  [junitreport] Using class org.apache.tools.ant.taskdefs.optional.TraXLiaison 
  [junitreport] Processing C:\eclipse\eclipse-java-helios-SR1-win32\eclipse\JunitWS\SeleniumTraining\src\reports\TESTS-TestSuites.xml to C:\Users\pmahajan\AppData\Local\Temp\null236099757 
  [junitreport] Loading stylesheet jar:file:/C:/ant/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl 
  [junitreport] Transform time: 330ms 
  [junitreport] Deleting: C:\Users\pmahajan\AppData\Local\Temp\null236099757 
  
  BUILD SUCCESSFUL
  Total time: 49 seconds
  </code></pre>