hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject hbase git commit: HBASE-15111 hbase version should write to stdout
Date Wed, 20 Jan 2016 05:43:32 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 e59536947 -> c6de18839


HBASE-15111 hbase version should write to stdout

Signed-off-by: Sean Busbey <busbey@cloudera.com>

Conflicts:
	hbase-common/src/main/java/org/apache/hadoop/hbase/util/VersionInfo.java


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

Branch: refs/heads/branch-1.2
Commit: c6de18839c98d924afb5c6747e17baa1e1a0a946
Parents: e595369
Author: Gary Helmling <garyh@apache.org>
Authored: Thu Jan 14 09:51:03 2016 -0800
Committer: Sean Busbey <busbey@cloudera.com>
Committed: Tue Jan 19 23:38:14 2016 -0600

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/util/VersionInfo.java | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/c6de1883/hbase-common/src/main/java/org/apache/hadoop/hbase/util/VersionInfo.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/util/VersionInfo.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/VersionInfo.java
index aadad2e..8061b4d 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/util/VersionInfo.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/VersionInfo.java
@@ -19,6 +19,7 @@
 package org.apache.hadoop.hbase.util;
 
 import org.apache.commons.logging.LogFactory;
+import java.io.PrintStream;
 import java.io.PrintWriter;
 
 import org.apache.hadoop.hbase.classification.InterfaceAudience;
@@ -113,6 +114,12 @@ public class VersionInfo {
     }
   }
 
+  public static void writeTo(PrintStream out) {
+    for (String line : versionReport()) {
+      out.println(line);
+    }
+  }
+
   public static void logVersion() {
     for (String line : versionReport()) {
       LOG.info(line);
@@ -120,6 +127,6 @@ public class VersionInfo {
   }
 
   public static void main(String[] args) {
-    logVersion();
+    writeTo(System.out);
   }
 }


Mime
View raw message