Author: scooter
Date: 2011-06-12 20:37:26 -0700 (Sun, 12 Jun 2011)
New Revision: 25717
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/CytoscapeVersion.java
Log:
Updated so that getVersion removes "-SNAPSHOT"
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/CytoscapeVersion.java
===================================================================
--- cytoscape/trunk/application/src/main/java/cytoscape/CytoscapeVersion.java
2011-06-10 23:22:02 UTC (rev 25716)
+++ cytoscape/trunk/application/src/main/java/cytoscape/CytoscapeVersion.java
2011-06-13 03:37:26 UTC (rev 25717)
@@ -37,6 +37,11 @@
private static String bugFixVersion = "0";
public CytoscapeVersion() {
+ if (version.indexOf('-') > 0) {
+ // This is either a snapshot or a beta or something --
strip off that information
+ int indx = version.indexOf('-');
+ version = version.substring(0, indx);
+ }
String[] Versions = version.split("\\.");
majorMinorVersion = Versions[0] + "." + Versions[1];
if (Versions.length == 3) {
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.