equal
deleted
inserted
replaced
2 # |
2 # |
3 # Author: Makarius |
3 # Author: Makarius |
4 # |
4 # |
5 # DESCRIPTION: invoke Scala within the Isabelle environment |
5 # DESCRIPTION: invoke Scala within the Isabelle environment |
6 |
6 |
7 [ -z "$SCALA_HOME" ] && { echo "Unknown SCALA_HOME -- Scala unavailable"; exit 2; } |
|
8 |
|
9 [ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; } |
7 [ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; } |
10 |
8 |
11 CLASSPATH="$(jvmpath "$CLASSPATH")" |
9 CLASSPATH="$(jvmpath "$CLASSPATH")" |
12 exec "$SCALA_HOME/bin/scala" -Dfile.encoding=UTF-8 \ |
10 isabelle_scala scala -Dfile.encoding=UTF-8 \ |
13 "-Djava.ext.dirs=$("$ISABELLE_HOME/src/Tools/JVM/java_ext_dirs")" "$@" |
11 "-Djava.ext.dirs=$("$ISABELLE_HOME/src/Tools/JVM/java_ext_dirs")" "$@" |