flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From muba...@apache.org
Subject svn commit: r1368365 - /flume/trunk/flume-ng-core/src/main/java/org/apache/flume/tools/VersionInfo.java
Date Thu, 02 Aug 2012 06:33:28 GMT
Author: mubarak
Date: Thu Aug  2 06:33:28 2012
New Revision: 1368365

URL: http://svn.apache.org/viewvc?rev=1368365&view=rev
Log:
FLUME-1416

Modified:
    flume/trunk/flume-ng-core/src/main/java/org/apache/flume/tools/VersionInfo.java

Modified: flume/trunk/flume-ng-core/src/main/java/org/apache/flume/tools/VersionInfo.java
URL: http://svn.apache.org/viewvc/flume/trunk/flume-ng-core/src/main/java/org/apache/flume/tools/VersionInfo.java?rev=1368365&r1=1368364&r2=1368365&view=diff
==============================================================================
--- flume/trunk/flume-ng-core/src/main/java/org/apache/flume/tools/VersionInfo.java (original)
+++ flume/trunk/flume-ng-core/src/main/java/org/apache/flume/tools/VersionInfo.java Thu Aug
 2 06:33:28 2012
@@ -54,7 +54,12 @@ public class VersionInfo {
    * @return the revision number, eg. "100755"
    */
   public static String getRevision() {
-    return version != null ? version.revision() : "Unknown";
+    if(version != null
+            && version.revision() != null
+            && !version.revision().isEmpty()){
+      return version.revision();
+    }
+    return "Unknown";
   }
 
   /**
@@ -110,7 +115,9 @@ public class VersionInfo {
 
   public static void main(String[] args) {
     System.out.println("Flume " + getVersion());
-    System.out.println("Subversion " + getUrl() + " -r " + getRevision());
+    System.out.println("Source code repository: "
+            + "https://git-wip-us.apache.org/repos/asf/flume.git");
+    System.out.println("Revision: " + getRevision());
     System.out.println("Compiled by " + getUser() + " on " + getDate());
     System.out.println("From source with checksum " + getSrcChecksum());
   }



Mime
View raw message