mirror of https://github.com/apache/lucene.git
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:
parent
abf2f86302
commit
a08a64ddaf
|
@ -78,8 +78,8 @@ public final class Constants {
|
||||||
String v = (pkg == null) ? null : pkg.getImplementationVersion();
|
String v = (pkg == null) ? null : pkg.getImplementationVersion();
|
||||||
if (v == null) {
|
if (v == null) {
|
||||||
v = LUCENE_MAIN_VERSION + "-dev";
|
v = LUCENE_MAIN_VERSION + "-dev";
|
||||||
} else if (v.indexOf(LUCENE_MAIN_VERSION) == -1) {
|
} else if (!v.startsWith(LUCENE_MAIN_VERSION)) {
|
||||||
v = v + " [" + LUCENE_MAIN_VERSION + "]";
|
v = LUCENE_MAIN_VERSION + "-dev " + v;
|
||||||
}
|
}
|
||||||
LUCENE_VERSION = ident(v);
|
LUCENE_VERSION = ident(v);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue