Repository: ignite Updated Branches: refs/heads/master c000fbc5b -> c3ff274d4
IGNITE-8274 sqlline.sh script uses JAVA_HOME now Signed-off-by: Andrey Gura <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/c3ff274d Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/c3ff274d Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/c3ff274d Branch: refs/heads/master Commit: c3ff274d4a9a8f228fabfc4bfbe85823e0cc0ec8 Parents: c000fbc Author: oleg-ostanin <[email protected]> Authored: Tue Apr 17 20:58:53 2018 +0300 Committer: Andrey Gura <[email protected]> Committed: Tue Apr 17 20:58:53 2018 +0300 ---------------------------------------------------------------------- modules/sqlline/bin/sqlline.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/c3ff274d/modules/sqlline/bin/sqlline.sh ---------------------------------------------------------------------- diff --git a/modules/sqlline/bin/sqlline.sh b/modules/sqlline/bin/sqlline.sh index 5745aea..552440d 100644 --- a/modules/sqlline/bin/sqlline.sh +++ b/modules/sqlline/bin/sqlline.sh @@ -36,6 +36,11 @@ SCRIPTS_HOME="${IGNITE_HOME_TMP}/bin" source "${SCRIPTS_HOME}"/include/functions.sh # +# Discover path to Java executable and check it's version. +# +checkJava + +# # Discover IGNITE_HOME environment variable. # setIgniteHome @@ -51,4 +56,4 @@ CP="${IGNITE_LIBS}" CP="${CP}${SEP}${IGNITE_HOME_TMP}/bin/include/sqlline/*" -java -cp ${CP} sqlline.SqlLine -d org.apache.ignite.IgniteJdbcThinDriver $@ \ No newline at end of file +"$JAVA" -cp ${CP} sqlline.SqlLine -d org.apache.ignite.IgniteJdbcThinDriver $@ \ No newline at end of file
