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
This commit is contained in:
Uwe Schindler 2009-10-22 10:21:52 +00:00
parent abf2f86302
commit a08a64ddaf
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}