File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ limitations under the License.
106
106
107
107
<replaceregexp file =" src/main/com/mongodb/Mongo.java" match =" \sMAJOR_VERSION\s=\s\d+;" replace =" MAJOR_VERSION = ${ lib.major } ;" byline =" false" />
108
108
<replaceregexp file =" src/main/com/mongodb/Mongo.java" match =" \sMINOR_VERSION\s=\s\d+;" replace =" MINOR_VERSION = ${ lib.minor } ;" byline =" false" />
109
+ <replaceregexp file =" src/main/com/mongodb/Mongo.java" match =' \sFULL_VERSION\s=\s"\S*";'
110
+ replace =' FULL_VERSION = "${ build.conf.lib.version } ";' byline =" false" />
109
111
110
112
<javac
111
113
srcdir =" src/main"
Original file line number Diff line number Diff line change 26
26
import java .util .concurrent .ConcurrentHashMap ;
27
27
import java .util .concurrent .ConcurrentMap ;
28
28
29
+ import com .sun .tools .javac .resources .version ;
29
30
import org .bson .io .PoolOutputBuffer ;
30
31
31
32
/**
@@ -88,6 +89,8 @@ public class Mongo {
88
89
@ Deprecated
89
90
public static final int MINOR_VERSION = 8 ;
90
91
92
+ private static final String FULL_VERSION = "2.8.0.RC1" ;
93
+
91
94
static int cleanerIntervalMS ;
92
95
static {
93
96
cleanerIntervalMS = Integer .parseInt (System .getProperty ("com.mongodb.cleanerIntervalMS" , "1000" ));
@@ -377,10 +380,10 @@ public void dropDatabase(String dbName)
377
380
378
381
/**
379
382
* gets this driver version
380
- * @return
383
+ * @return the full version string of this driver, e.g. "2.8.0"
381
384
*/
382
385
public String getVersion (){
383
- return MAJOR_VERSION + "." + MINOR_VERSION ;
386
+ return FULL_VERSION ;
384
387
}
385
388
386
389
/**
You can’t perform that action at this time.
0 commit comments