Sha256: 926c53d9ef6cf3bc2bfce2c0e8c1c009382113f5ab47ee02229e6a131a9a602e

Contents?: true

Size: 1.47 KB

Versions: 14

Compression:

Stored size: 1.47 KB

Contents

java_args=""
jruby_args=""
default_optimize=""
overwrite_optimize=""

while true; do
    case "$1" in
        -E*)
            external_script="${1#-E}"
            echo "Running an external shell script: $external_script"
            . $external_script
            shift
            ;;
        "-J+O")
            overwrite_optimize="true"
            shift
            break;
            ;;
        "-J-O")
            overwrite_optimize="false"
            shift
            break;
            ;;
        -J*)
            v="${1#-J}"
            if test "$v"; then
                java_args="$java_args $v"
            else
                shift
                file_args=`cat "$1"`
                if test $? -ne 0; then
                    echo "Failed to load java argument file."
                    exit 1
                fi
                java_args="$java_args $file_args"
            fi
            shift
            ;;
        -R*)
            jruby_args="$jruby_args $1"
            shift
            ;;
        run)
            default_optimize="true"
            break
            ;;
        *)
            break
            ;;
    esac
done

if test "$overwrite_optimize" = "true" -o "$default_optimize" -a "$overwrite_optimize" != "false"; then
    java_args="-XX:+AggressiveOpts -XX:+UseConcMarkSweepGC $java_args"
else
    java_args="-XX:+AggressiveOpts -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none $java_args"
fi

exec java $java_args -jar "$0" $jruby_args "$@"
exit 127

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
embulk-0.8.39 embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.39-java embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.38 embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.38-java embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.37 embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.37-java embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.36 embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.36-java embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.35 embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.35-java embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.34 embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.34-java embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.33 embulk-cli/src/main/sh/selfrun.sh
embulk-0.8.33-java embulk-cli/src/main/sh/selfrun.sh