Sha256: 303065cf650f7ec19ada1fd18c8235e534c7c2928b2cd04af543df86bf666beb

Contents?: true

Size: 1.37 KB

Versions: 19

Compression:

Stored size: 1.37 KB

Contents

: <<BAT
@echo off

java -jar %~f0 %*

exit /B
BAT

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

while true; do
    case "$1" in
        "-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*)
            v="${1#-R}"
            jruby_args="$jruby_args $v"
            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

19 entries across 19 versions & 1 rubygems

Version Path
embulk-0.6.10 embulk-cli/src/main/sh/selfrun.sh
embulk-0.6.9 embulk-cli/src/main/sh/selfrun.sh
embulk-0.6.8 embulk-cli/src/main/sh/selfrun.sh
embulk-0.6.7 embulk-cli/src/main/sh/selfrun.sh
embulk-0.6.6 embulk-cli/src/main/sh/selfrun.sh
embulk-0.6.5 embulk-cli/src/main/sh/selfrun.sh
embulk-0.6.4 embulk-cli/src/main/sh/selfrun.sh
embulk-0.6.3 embulk-cli/src/main/sh/selfrun.sh
embulk-0.6.2 embulk-cli/src/main/sh/selfrun.sh
embulk-0.6.1 embulk-cli/src/main/sh/selfrun.sh
embulk-0.6.0 embulk-cli/src/main/sh/selfrun.sh
embulk-0.5.5 embulk-cli/src/main/sh/selfrun.sh
embulk-0.5.4 embulk-cli/src/main/sh/selfrun.sh
embulk-0.5.3 embulk-cli/src/main/sh/selfrun.sh
embulk-0.5.2 embulk-cli/src/main/sh/selfrun.sh
embulk-0.5.1 embulk-cli/src/main/sh/selfrun.sh
embulk-0.5.0 embulk-cli/src/main/sh/selfrun.sh
embulk-0.4.10 embulk-cli/src/main/sh/selfrun.sh
embulk-0.4.9 embulk-cli/src/main/sh/selfrun.sh