lib/Tools/scalac
author wenzelm
Thu Aug 23 21:23:14 2012 +0200 (2012-08-23)
changeset 48915 34fac6fb9b03
parent 47748 24550210de0b
child 52443 725916b7dee5
permissions -rwxr-xr-x
simplified JVM startup, based on stronger assumptions about the Java version provided as Isabelle component;
wenzelm@44950
     1
#!/usr/bin/env bash
wenzelm@44950
     2
#
wenzelm@44950
     3
# Author: Makarius
wenzelm@44950
     4
#
wenzelm@44950
     5
# DESCRIPTION: invoke Scala compiler within the Isabelle environment
wenzelm@44950
     6
wenzelm@44950
     7
[ -e "$ISABELLE_HOME/Admin/build" ] && { "$ISABELLE_HOME/Admin/build" jars || exit $?; }
wenzelm@44950
     8
wenzelm@44950
     9
CLASSPATH="$(jvmpath "$CLASSPATH")"
wenzelm@47115
    10
isabelle_scala scalac -Dfile.encoding=UTF-8 \
wenzelm@48915
    11
  "-Djava.ext.dirs=$(jvmpath "$ISABELLE_JAVA_EXT:$ISABELLE_HOME/lib/classes/ext")" "$@"
wenzelm@48915
    12