title: junitreport ant task giving java.lang.OutOfMemoryError: Java heap space
body: <p>I'm running junit tests from an ant script. The tests run successfully so ant moves on to the the junitreport task to create the html report. This task is failing with a <code>java.lang.OutOfMemoryError: Java heap space error</code>.</p>
  
  <p>How can I increase the heap size for this task? Or is there another way to resolve this error?</p>
  
  <p><strong>Some additional information:</strong></p>
  
  <p>It was working fine until I added 40 additional tests  </p>
  
  <p>I've had a look at the xml output of the tests and it looks reasonable i.e. it's not full of long error messages. </p>