forked from oracle/graal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register the Installer as a component.
- Loading branch information
1 parent
7146768
commit 8f88ab0
Showing
97 changed files
with
11,864 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
source="${BASH_SOURCE[0]}" | ||
while [ -h "$source" ] ; do | ||
prev_source="$source" | ||
source="$(readlink "$source")"; | ||
if [[ "$source" != /* ]]; then | ||
# if the link was relative, it was relative to where it came from | ||
dir="$( cd -P "$( dirname "$prev_source" )" && pwd )" | ||
source="$dir/$source" | ||
fi | ||
done | ||
bin_dir="$( cd -P "$( dirname "$source" )" && pwd )" | ||
installer_jar="${bin_dir}/../installer.jar" | ||
root_dir="${bin_dir}/../../../.." | ||
java_exe=${root_dir}/bin/java | ||
|
||
JAVA_ARGS=() | ||
PROGRAM_ARGS=() | ||
for opt in "${@:1}" | ||
do | ||
case $opt in | ||
-J:*|--jvm*) | ||
opt=${opt:3} | ||
JAVA_ARGS+=("$opt") ;; | ||
*) | ||
PROGRAM_ARGS+=("$opt") ;; | ||
esac | ||
done | ||
|
||
|
||
exec ${java_exe} "${JAVA_ARGS[@]}" -DGRAAL_HOME="${root_dir}" -jar "${installer_jar}" "${PROGRAM_ARGS[@]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.