lib/Tools/scalac
author wenzelm
Mon, 07 Nov 2011 14:59:58 +0100
changeset 45385 7c1375ba1424
parent 44950 f60405791a1d
child 47115 1a05adae1cc9
permissions -rwxr-xr-x
offline build of java_ext_dirs.jar, to avoid runtime dependency on javac/jar executables;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44950
f60405791a1d added "isabelle scalac" convenience;
wenzelm
parents:
diff changeset
     1
#!/usr/bin/env bash
f60405791a1d added "isabelle scalac" convenience;
wenzelm
parents:
diff changeset
     2
#
f60405791a1d added "isabelle scalac" convenience;
wenzelm
parents:
diff changeset
     3
# Author: Makarius
f60405791a1d added "isabelle scalac" convenience;
wenzelm
parents:
diff changeset
     4
#
f60405791a1d added "isabelle scalac" convenience;
wenzelm
parents:
diff changeset
     5
# DESCRIPTION: invoke Scala compiler within the Isabelle environment
f60405791a1d added "isabelle scalac" convenience;
wenzelm
parents:
diff changeset
     6
f60405791a1d added "isabelle scalac" convenience;
wenzelm
parents:
diff changeset
     7
[ -z "$SCALA_HOME" ] && { echo "Unknown SCALA_HOME -- Scala unavailable"; exit 2; }
f60405791a1d added "isabelle scalac" convenience;
wenzelm
parents:
diff changeset
     8
f60405791a1d added "isabelle scalac" convenience;
wenzelm
parents:
diff changeset
     9
[ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; }
f60405791a1d added "isabelle scalac" convenience;
wenzelm
parents:
diff changeset
    10
f60405791a1d added "isabelle scalac" convenience;
wenzelm
parents:
diff changeset
    11
CLASSPATH="$(jvmpath "$CLASSPATH")"
f60405791a1d added "isabelle scalac" convenience;
wenzelm
parents:
diff changeset
    12
exec "$SCALA_HOME/bin/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
    13
  "-Djava.ext.dirs=$("$ISABELLE_HOME/src/Tools/JVM/java_ext_dirs")" "$@"