knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject [01/41] knox git commit: KNOX-494 - knox-env.sh script should print proper warning message , if JAVA is not set (Andreina J via lmccay).
Date Thu, 12 Feb 2015 16:21:43 GMT
Repository: knox
Updated Branches:
  refs/heads/KNOX-481 749a57fc4 -> 9e0e3e8ce


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/KNOX-481
Commit: 59735a88c66bca0e7ccc2f093614551908757ae4
Parents: 7c4b44a
Author: Larry McCay <lmccay@hortonworks.com>
Authored: Thu Feb 5 22:03:47 2015 -0500
Committer: Larry McCay <lmccay@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
+


Mime
View raw message