junitreport ant task giving java.lang.OutOfMemoryError: Java heap space

前端 未结 4 685
一整个雨季
一整个雨季 2021-01-23 06:47

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

4条回答
  •  鱼传尺愫
    2021-01-23 07:18

    The "maxmemory="###m" appears to ONLY work if you use fork, If you aren't using fork (like I am) it doesn't get used, You have to use the ANT_OPTS to change the heap.

提交回复
热议问题