Repository: knox
Updated Branches:
  refs/heads/master 7c4b44af6 -> 59735a88c


KNOX-494 - knox-env.sh script should print proper warning message , if JAVA is 
not set (Andreina J via lmccay).

Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/59735a88
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/59735a88
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/59735a88

Branch: refs/heads/master
Commit: 59735a88c66bca0e7ccc2f093614551908757ae4
Parents: 7c4b44a
Author: Larry McCay <lmc...@hortonworks.com>
Authored: Thu Feb 5 22:03:47 2015 -0500
Committer: Larry McCay <lmc...@hortonworks.com>
Committed: Thu Feb 5 22:03:47 2015 -0500

----------------------------------------------------------------------
 CHANGES                              | 1 +
 gateway-release/home/bin/knox-env.sh | 5 +++++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/59735a88/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 69b1a1b..2588f74 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,7 @@ Release Notes - Apache Knox - Version 0.6.0
   * [KNOX-473] - Configurable front end URL for simplified load balancer 
configuration
   * [KNOX-479] - Remove cacheManager configuration from template files
   * [KNOX-480] - KnoxCLI needs to print usage when alias not provided
+  * [KNOX-494] - knox-env.sh script should print proper warning message , if 
JAVA is not set. (Andreina J via lmccay)
 
 ------------------------------------------------------------------------------
 Release Notes - Apache Knox - Version 0.5.1

http://git-wip-us.apache.org/repos/asf/knox/blob/59735a88/gateway-release/home/bin/knox-env.sh
----------------------------------------------------------------------
diff --git a/gateway-release/home/bin/knox-env.sh 
b/gateway-release/home/bin/knox-env.sh
index fd860ac..8124020 100644
--- a/gateway-release/home/bin/knox-env.sh
+++ b/gateway-release/home/bin/knox-env.sh
@@ -59,3 +59,8 @@ function findJava() {
 }
 
 findJava
+
+  if [[ -z $JAVA ]]; then
+    echo "Warning: JAVA is not set and could not be found." 1>&2
+  fi
+

Reply via email to