< prev index next >

make/conf/jib-profiles.js

Print this page
rev 48062 : 8192833: JEP 322: Time-Based Release Versioning

*** 1034,1054 **** /** * Constructs the numeric version string from reading the * make/autoconf/version-numbers file and removing all trailing ".0". * ! * @param major Override major version ! * @param minor Override minor version ! * @param security Override security version * @param patch Override patch version * @returns {String} The numeric version string */ ! var getVersion = function (major, minor, security, patch) { var version_numbers = getVersionNumbers(); ! var version = (major != null ? major : version_numbers.get("DEFAULT_VERSION_MAJOR")) ! + "." + (minor != null ? minor : version_numbers.get("DEFAULT_VERSION_MINOR")) ! + "." + (security != null ? security : version_numbers.get("DEFAULT_VERSION_SECURITY")) + "." + (patch != null ? patch : version_numbers.get("DEFAULT_VERSION_PATCH")); while (version.match(".*\\.0$")) { version = version.substring(0, version.length - 2); } return version; --- 1034,1054 ---- /** * Constructs the numeric version string from reading the * make/autoconf/version-numbers file and removing all trailing ".0". * ! * @param feature Override feature version ! * @param interim Override interim version ! * @param update Override update version * @param patch Override patch version * @returns {String} The numeric version string */ ! var getVersion = function (feature, interim, update, patch) { var version_numbers = getVersionNumbers(); ! var version = (feature != null ? feature : version_numbers.get("DEFAULT_VERSION_FEATURE")) ! + "." + (interim != null ? interim : version_numbers.get("DEFAULT_VERSION_INTERIM")) ! + "." + (update != null ? update : version_numbers.get("DEFAULT_VERSION_UPDATE")) + "." + (patch != null ? patch : version_numbers.get("DEFAULT_VERSION_PATCH")); while (version.match(".*\\.0$")) { version = version.substring(0, version.length - 2); } return version;
< prev index next >