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" .... but I was wondering if there is a better approach? Do I need to write a script for building gradle? So annoying that java just doesn't allocate as needed :(
