Created
May 4, 2011 08:38
-
-
Save dln/954936 to your computer and use it in GitHub Desktop.
Keep fsc (Fast Scala Compiler) alive so intellij doesn't lock up when fsc shuts down when idle.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
JAVA_OPTS="$JAVA_OPTS -Xmx512M -Xms64M" fsc -shutdown | |
DUMMY=$(mktemp -t fsc-dummy.$USER.XXXXX) | |
echo "object Dummy { val answer = 42 }" > $DUMMY | |
trap "rm -f $DUMMY" EXIT | |
while true; do | |
echo Compiling dummy... | |
scala $DUMMY | |
sleep 1500 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment