I am trying to run ant task, however I get the following error:
[javadoc] javadoc: error - java.lang.OutOfMemoryError: Please increase memory. [javadoc] For
I solved it.
It had nothing to do with little memory. It was an endeless loop in my javadoc generation.
The correct way of setting more memory for ant is by using export ANT_OPTS=-Xmx256m on *nix.
export ANT_OPTS=-Xmx256m
On Windows follow the usual steps for setting environment variables.