forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
go
executable file
·17 lines (11 loc) · 633 Bytes
/
go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash
# we want jruby-complete to take care of all things ruby
unset GEM_HOME
unset GEM_PATH
JAVA_OPTS="-client -Xmx4096m -XX:ReservedCodeCacheSize=512m"
java_version=`java -version 2>&1 | sed 's/.* version "\(.*\)\.\(.*\)\..*".*/\1.\2/; 1q'`
if [[ $java_version != "1.8" ]]
then
JAVA_OPTS="$JAVA_OPTS -XX:MetaspaceSize=1024m --add-modules java.se --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/javax.crypto=ALL-UNNAMED"
fi
java $JAVA_OPTS -jar third_party/jruby/jruby-complete.jar -X-C -S rake $*