src/Pure/build-jars
changeset 50689 0607d557d073
parent 50687 a8db4bf70e90
child 50707 5b2bf7611662
equal deleted inserted replaced
50688:f02864682307 50689:0607d557d073
   124 # args
   124 # args
   125 
   125 
   126 [ "$#" -ne 0 ] && usage
   126 [ "$#" -ne 0 ] && usage
   127 
   127 
   128 
   128 
       
   129 ## dependencies
       
   130 
       
   131 declare -a JFREECHART_JARS=()
       
   132 for NAME in $JFREECHART_JAR_NAMES
       
   133 do
       
   134   JFREECHART_JARS["${#JFREECHART_JARS[@]}"]="$JFREECHART_HOME/lib/$NAME"
       
   135 done
       
   136 
       
   137 
   129 ## build
   138 ## build
   130 
   139 
   131 TARGET_DIR="$ISABELLE_HOME/lib/classes"
   140 TARGET_DIR="$ISABELLE_HOME/lib/classes"
   132 TARGET="$TARGET_DIR/ext/Pure.jar"
   141 TARGET="$TARGET_DIR/ext/Pure.jar"
   133 
   142 
   180 
   189 
   181   SCALAC_OPTIONS="$ISABELLE_SCALA_BUILD_OPTIONS -d classes"
   190   SCALAC_OPTIONS="$ISABELLE_SCALA_BUILD_OPTIONS -d classes"
   182 
   191 
   183   JFXRT="$ISABELLE_JDK_HOME/jre/lib/jfxrt.jar"
   192   JFXRT="$ISABELLE_JDK_HOME/jre/lib/jfxrt.jar"
   184 
   193 
   185   if [ "$TEST_PIDE" = true ]; then
   194   (
   186     isabelle_scala scalac $SCALAC_OPTIONS \
   195     for X in "$JFXRT" "${JFREECHART_JARS[@]}" classes
   187         -classpath "$(jvmpath "$JFXRT:classes")" "${PIDE_SOURCES[@]}" || \
   196     do
   188       fail "Failed to compile PIDE sources"
   197       CLASSPATH="$CLASSPATH:$X"
   189     isabelle_scala scalac $SCALAC_OPTIONS \
   198     done
   190         -classpath "$(jvmpath "$JFXRT:classes")" "${PURE_SOURCES[@]}" || \
   199     CLASSPATH="$(jvmpath "$CLASSPATH")"
   191       fail "Failed to compile Pure sources"
   200 
   192   else
   201     if [ "$TEST_PIDE" = true ]; then
   193     isabelle_scala scalac $SCALAC_OPTIONS \
   202       isabelle_scala scalac $SCALAC_OPTIONS "${PIDE_SOURCES[@]}" || \
   194         -classpath "$(jvmpath "$JFXRT:classes")" "${PIDE_SOURCES[@]}" "${PURE_SOURCES[@]}" || \
   203         fail "Failed to compile PIDE sources"
   195       fail "Failed to compile sources"
   204       isabelle_scala scalac $SCALAC_OPTIONS "${PURE_SOURCES[@]}" || \
   196   fi
   205         fail "Failed to compile Pure sources"
       
   206     else
       
   207       isabelle_scala scalac $SCALAC_OPTIONS "${PIDE_SOURCES[@]}" "${PURE_SOURCES[@]}" || \
       
   208         fail "Failed to compile sources"
       
   209     fi
       
   210   )
   197 
   211 
   198   mkdir -p "$TARGET_DIR/ext" || fail "Failed to create directory $TARGET_DIR/ext"
   212   mkdir -p "$TARGET_DIR/ext" || fail "Failed to create directory $TARGET_DIR/ext"
   199 
   213 
   200   pushd classes >/dev/null
   214   pushd classes >/dev/null
   201 
   215