Hmm... of course! Thanks! I have to read the documentation better next time
=)
 
/Patrik

-----Original Message----- 
From: Jay Glanville 
Sent: on 2001-05-16 13:35 
To: Ant-User (text) 
Cc: 
Subject: RE: Increasing memory for javadoc



According to the documentation for javadoc, there is a parameter called 
"maxmemory".  Therefore, try something like this: 
    <javadoc ... 
        maxmemory="32m" 
        ... /> 

the JAVACMD only works for the virtual machine that ant is running in, and 
unfortunately, javadoc is not running in the same VM as Ant. 

Hope this helps 

JDGlanville 

> -----Original Message----- 
> From: Patrik Isegran [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ] 
> Sent: Wednesday, May 16, 2001 7:21 AM 
> To: [EMAIL PROTECTED] 
> Subject: Increasing memory for javadoc 
> 
> 
> I get OutOfMemory when generating javadoc: 
>  
> [javadoc] Constructing Javadoc information... 
> [javadoc] javadoc: java.lang.OutOfMemoryError: Please increase memory. 
> [javadoc] For example, on the Sun Classic or HotSpot VMs, add 
> the option 
> -J-Xmx 
> [javadoc] such as -J-Xmx32m. 
> 1 error 
> 
> I tried to increase the memory for java by setting the JAVACMD: 
> setenv JAVACMD "java -Xmx512m" 
> but I still receive the same error. 
>  
> How do I increase the memory for javadoc? 
> Doesn't javadoc uses java to generate the documents? 
>  
> Regards, 
> /Patrik 
> 

application/ms-tnef

Reply via email to