From a08a64ddafa1e8b3ddc5977d13f8f15b5d6d789b Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Thu, 22 Oct 2009 10:21:52 +0000 Subject: [PATCH] Fix version constant, if the manifest version does not start with LUCENE_MAIN_VERSION git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@828636 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/util/Constants.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/lucene/util/Constants.java b/src/java/org/apache/lucene/util/Constants.java index dde5886d1f9..a034d309322 100644 --- a/src/java/org/apache/lucene/util/Constants.java +++ b/src/java/org/apache/lucene/util/Constants.java @@ -78,8 +78,8 @@ public final class Constants { 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); }