Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
junitテストケースの実行後に生成されたtxt形式のレポートからHTMLレポートを生成しようとしています。適切な場所でbuild.xmlを使用してantコマンドを実行すると、以下のエラーメッセージが表示されます
java.lang.OutOfMemoryError: Java heap space
ANT_OPTS=-Xmx1024mコマンドでヒープスペースを増やしてみました。
ANT_OPTS=-Xmx1024m
まだ同じ問題に直面しています。
Ant を開始する前に使用export JAVA_OPTS=-Xmx1024mしてください。ANT_OPTS がシステムごとに設定されている場合、JAVA_OPTS によってオーバーライドされる可能性があるためです。
export JAVA_OPTS=-Xmx1024m