#!/usr/bin/env bash
set -euo pipefail
scriptDir=$(dirname $0)
source $scriptDir/constants

$scriptDir/get_deps.sh

METEOR_FLAGS="-XX:+UseCompressedOops -Xmx2g"
heap="$METEOR_FLAGS" # start with meteor heap size
for arg in "$@"; do
    if [[ "$arg" == "--metrics" ]]; then
        # We might not be using METEOR, so don't request any additional heap
        flags=""
    fi
    # TODO: Check if this follows --metric
    if [[ "$arg" == "meteor" ]]; then
        # We're using meteor after all, use the big heap
        heap="$METEOR_FLAGS"
    fi
done

# Specify -Dfile.encoding so that the meteor paraphrase tables load properly
java -Dfile.encoding=UTF8 $flags \
    -cp $terJar:$meteorJar:$scriptDir/multeval-${version}.jar \
    multeval.MultEval "$@"

#!/usr/bin/env bash
set -euo pipefail
scriptDir=$(dirname $0)
source $scriptDir/constants

$scriptDir/get_deps.sh

METEOR_FLAGS="-XX:+UseCompressedOops -Xmx2g"
flags="$METEOR_FLAGS" # start with meteor heap size
for arg in "$@"; do
    if [[ "$arg" == "--metrics" ]]; then
        # We might not be using METEOR, so don't request any additional heap
        flags=""
    fi
    # TODO: Check if this follows --metric
    if [[ "$arg" == "meteor" ]]; then
        # We're using meteor after all, use the big heap
        flags="$METEOR_FLAGS"
    fi
done

# Specify -Dfile.encoding so that the meteor paraphrase tables load properly
java -Dfile.encoding=UTF8 $flags \
    -cp $terJar:$meteorJar:$scriptDir/multeval-${version}.jar \
    multeval.MultEval "$@"

Fix regression bug in launcher script
Fix regression bug in launcher script
