On 18/03/2011, at 4:46 AM, phil swenson wrote:

> I tried to build gradle from source and got this:
> 
> FAILURE: Build failed with an exception.
> 
> * Where:
> Build file '/Users/phil/dev/sag/gradle/subprojects/docs/docs.gradle'
> 
> * What went wrong:
> Execution failed for task ':docs:userguidePdf'.
> Cause: PermGen space
> 
> 
> I got past this by setting permgen via the command line as:
> 
> GRADLE_OPTS="-Xmx1024m -Xms256m -XX:MaxPermSize=512m 
> -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError"

You can also just use the daemon, without setting all this stuff:

./gradlew --daemon install


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
Co-Founder and VP of Engineering, Gradleware Inc. - Gradle Training, Support, 
Consulting
http://www.gradleware.com

Reply via email to