title: Error! The first argument to the non-static Java function 'replace' is not a valid object reference
body: <p>I am trying to get ANT to create an HTML report of a JUNIT test in Eclipse but after I created the ANT build I get the following errors when I run it:</p>
  
  <pre><code>[junitreport] Processing C:\Documents and Settings\Administrator\workspace\Home\junit\TESTS-TestSuites.xml to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\null785926900
  [junitreport] Loading stylesheet jar:file:/C:/ANT/apache-ant-1.8.3/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
  [junitreport] : Error! The first argument to the non-static Java function 'replace' is not a valid object reference.
  [junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
  [junitreport] : Fatal Error! Could not compile stylesheet
  [junitreport] Failed to process C:\Documents and Settings\Administrator\workspace\Home\junit\TESTS-TestSuites.xml
  </code></pre>
  
  <p>What do I need to do to fix this?</p>
  
  <p>Here are the sections of my Build.xml I am trying to run:</p>
  
  <pre><code>&lt;target name="Home"&gt;
      &lt;mkdir dir="${junit.output.dir}"/&gt;
      &lt;junit fork="yes" printsummary="withOutAndErr"&gt;
          &lt;formatter type="xml"/&gt;
          &lt;test name="Home" todir="${junit.output.dir}"/&gt;
          &lt;classpath refid="Home.classpath"/&gt;
      &lt;/junit&gt;
  &lt;/target&gt;
  &lt;target name="junitreport"&gt;
      &lt;junitreport todir="${junit.output.dir}"&gt;
          &lt;fileset dir="${junit.output.dir}"&gt;
              &lt;include name="TEST-*.xml"/&gt;
          &lt;/fileset&gt;
          &lt;report format="frames" todir="${junit.output.dir}"/&gt;
      &lt;/junitreport&gt;
  &lt;/target&gt;
  </code></pre>