define scala.home, for more robust startup of Scala tools, notably the compiler;
authorwenzelm
Fri, 08 Jan 2010 12:26:22 +0100
changeset 34843 eb8806a2e348
parent 34842 2f6f9b6099b2
child 34844 92ea2174ea78
define scala.home, for more robust startup of Scala tools, notably the compiler;
src/Tools/jEdit/dist-template/lib/Tools/jedit
--- a/src/Tools/jEdit/dist-template/lib/Tools/jedit	Fri Jan 08 12:25:37 2010 +0100
+++ b/src/Tools/jEdit/dist-template/lib/Tools/jedit	Fri Jan 08 12:26:22 2010 +0100
@@ -77,6 +77,8 @@
 }
 
 declare -a JAVA_ARGS; eval "JAVA_ARGS=($JEDIT_JAVA_OPTIONS)"
+[ -n "$SCALA_HOME" ] && JAVA_ARGS["${#JAVA_ARGS[@]}"]="-Dscala.home=$SCALA_HOME"
+
 declare -a ARGS; eval "ARGS=($JEDIT_OPTIONS)"
 
 declare -a OPTIONS; eval "OPTIONS=($ISABELLE_JEDIT_OPTIONS)"