Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sre] Create a CLI launcher for Janus.
- Loading branch information
1 parent
e1069d5
commit a18cd8c
Showing
4 changed files
with
158 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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
17 changes: 17 additions & 0 deletions
17
sre/io.janusproject/io.janusproject.kernel/src-templates/janus.sh
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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
MYSELF=`readlink -f "$0"` | ||
CDIR=`dirname "$MYSELF"` | ||
|
||
JAVA=java | ||
if [ -n "$JAVA_HOME" ]; then | ||
JAVA="$JAVA_HOME/bin/java" | ||
fi | ||
|
||
if ( which $JAVA 2>&1 > /dev/null ); then | ||
exec $JAVA -jar "$MYSELF" "{cliRunnerMainClass}" --nologo "$@" | ||
else | ||
echo "Cannot find Java, please set your JAVA_HOME" | ||
fi | ||
|
||
exit 255 |