#!/bin/sh # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # * This source file is part of SableVM. * # * * # * See the file "LICENSE" for the copyright information and for * # * the terms and conditions for copying, distribution and * # * modification of this source file. * # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # This wrapper allows us to run 'javac' command using either our own # or system-wide jikes before SableVM Classpath and/or Jikes are # installed. This is a specialized version of javac-sablevm wrapper. if [ -x "@JIKES@" ]; then JIKES="@JIKES@" else echo "Error; unable to find 'jikes' compiler. This might indicate a bug" >&2 echo "in SableVM SDK build system. Please report to http://sablevm.org/bugs" >&2 exit 1 fi if [ ! -f "@MAIN_BUILDDIR@/sablevm-classpath/lib/libclasspath.jar" ]; then echo "Error: unable to find basic java classes to use with javac/jikes." >&2 echo "This might indicate a bug in SableVM SDK build system. Please report" >&2 echo "to http://sablevm.org/bugs" >&2 fi # this is so that jikes worked w/o problems, i.e. when called by Ant BOOTCLASSPATH="@MAIN_BUILDDIR@/sablevm-classpath/lib/resources.jar" BOOTCLASSPATH="$BOOTCLASSPATH:@MAIN_BUILDDIR@/sablevm-classpath/lib/libclasspath.jar" export BOOTCLASSPATH exec $JIKES -q "$@" echo "Error: unable to execute $JIKES." >&2 exit 1