public String getVersionString() {
        if (versionString == null) {
            StringBuilder sb = new StringBuilder();
            sb.append(major).append('.').append(minor).append('.').append(micro);
            if(status == ReleaseStatus.Snapshot) {
                if (statusVersion >= 0) {
                    sb.append('.').append(statusVersion);
                }
                sb.append("-SNAPSHOT");
            } else if (status != ReleaseStatus.Release || statusVersion != -1) {
                sb.append(' ').append(status);
                if (statusVersion >= 0) {
                    sb.append(' ').append(statusVersion);
                }
            }
            versionString = sb.toString();
        }
        return versionString;
    }
Returns the version number of this instance of Openfire as a
String (ie major.minor.revision).

@return The version as a string
xmppserver/src/main/java/org/jivesoftware/util/Version.java