lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r828636 - /lucene/java/trunk/src/java/org/apache/lucene/util/Constants.java
Date Thu, 22 Oct 2009 10:21:52 GMT
Author: uschindler
Date: Thu Oct 22 10:21:52 2009
New Revision: 828636

URL: http://svn.apache.org/viewvc?rev=828636&view=rev
Log:
Fix version constant, if the manifest version does not start with LUCENE_MAIN_VERSION

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/util/Constants.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/util/Constants.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/util/Constants.java?rev=828636&r1=828635&r2=828636&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/util/Constants.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/util/Constants.java Thu Oct 22 10:21:52 2009
@@ -78,8 +78,8 @@
     String v = (pkg == null) ? null : pkg.getImplementationVersion();
     if (v == null) {
       v = LUCENE_MAIN_VERSION + "-dev";
-    } else if (v.indexOf(LUCENE_MAIN_VERSION) == -1) {
-      v = v + " [" + LUCENE_MAIN_VERSION + "]";
+    } else if (!v.startsWith(LUCENE_MAIN_VERSION)) {
+      v = LUCENE_MAIN_VERSION + "-dev " + v;
     }
     LUCENE_VERSION = ident(v);
   }



Mime
View raw message