author | wenzelm |
Mon, 26 Mar 2012 16:25:08 +0200 | |
changeset 47115 | 1a05adae1cc9 |
parent 45385 | 7c1375ba1424 |
child 47441 | 2fa904af222f |
permissions | -rwxr-xr-x |
44950 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# Author: Makarius |
|
4 |
# |
|
5 |
# DESCRIPTION: invoke Scala compiler within the Isabelle environment |
|
6 |
||
7 |
[ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; } |
|
8 |
||
9 |
CLASSPATH="$(jvmpath "$CLASSPATH")" |
|
47115
1a05adae1cc9
more robust command invocation via ISABELLE_JDK_HOME or SCALA_HOME (NB: bash exec requires genuine executable, not function);
wenzelm
parents:
45385
diff
changeset
|
10 |
isabelle_scala scalac -Dfile.encoding=UTF-8 \ |
45385
7c1375ba1424
offline build of java_ext_dirs.jar, to avoid runtime dependency on javac/jar executables;
wenzelm
parents:
44950
diff
changeset
|
11 |
"-Djava.ext.dirs=$("$ISABELLE_HOME/src/Tools/JVM/java_ext_dirs")" "$@" |