Increased the maximum heap size of GWT to prevent out of memory errors

svn path=/nixpkgs/trunk/; revision=17751
This commit is contained in:
Sander van der Burg 2009-10-12 10:42:36 +00:00
parent 666754f7aa
commit 9444b0f4a4

View File

@ -16,7 +16,7 @@ cat > $out/bin/gwt-compile <<EOF
export LD_LIBRARY_PATH=$libPath
export LIBXCB_ALLOW_SLOPPY_LOCK=1 # Workaround for bug in Java AWT implementation
java -cp "\$CLASSPATH:$out/$name/gwt-user.jar:$out/$name/gwt-dev-linux.jar" com.google.gwt.dev.GWTCompiler \$@
java -Xmx128m -cp "\$CLASSPATH:$out/$name/gwt-user.jar:$out/$name/gwt-dev-linux.jar" com.google.gwt.dev.GWTCompiler \$@
EOF
chmod 755 $out/bin/gwt-compile
@ -26,6 +26,6 @@ cat > $out/bin/gwt-shell <<EOF
export LD_LIBRARY_PATH=$libPath
export LIBXCB_ALLOW_SLOPPY_LOCK=1 # Workaround for bug in Java AWT implementation
java -cp "\$CLASSPATH:$out/$name/gwt-user.jar:$out/$name/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell \$@
java -Xmx128m -cp "\$CLASSPATH:$out/$name/gwt-user.jar:$out/$name/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell \$@
EOF
chmod 755 $out/bin/gwt-shell