author | wenzelm |
Thu, 12 Aug 2010 15:19:11 +0200 | |
changeset 38363 | af7f41a8a0a8 |
parent 37174 | 6feaab4fc27d |
child 41622 | ad5474a8374b |
permissions | -rwxr-xr-x |
27914 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# Author: Makarius |
|
4 |
# |
|
27916 | 5 |
# DESCRIPTION: invoke Scala within the Isabelle environment |
27914 | 6 |
|
37174
6feaab4fc27d
assume given SCALA_HOME, e.g. from component settings or external setup;
wenzelm
parents:
34297
diff
changeset
|
7 |
[ -z "$SCALA_HOME" ] && { echo "Unknown SCALA_HOME -- Scala unavailable"; exit 2; } |
6feaab4fc27d
assume given SCALA_HOME, e.g. from component settings or external setup;
wenzelm
parents:
34297
diff
changeset
|
8 |
|
34297 | 9 |
[ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; } |
34282
549969a7f582
simplified build/bootstrap of Isabelle/Scala components -- avoid make;
wenzelm
parents:
29143
diff
changeset
|
10 |
|
27914 | 11 |
CLASSPATH="$(jvmpath "$CLASSPATH")" |
37174
6feaab4fc27d
assume given SCALA_HOME, e.g. from component settings or external setup;
wenzelm
parents:
34297
diff
changeset
|
12 |
exec "$SCALA_HOME/bin/scala" "$@" |