Print this page
*** NO COMMENTS ***


1073     var version = (feature != null ? feature : version_numbers.get("DEFAULT_VERSION_FEATURE"))
1074         + "." + (interim != null ? interim : version_numbers.get("DEFAULT_VERSION_INTERIM"))
1075         + "." + (update != null ? update :  version_numbers.get("DEFAULT_VERSION_UPDATE"))
1076         + "." + (patch != null ? patch : version_numbers.get("DEFAULT_VERSION_PATCH"));
1077     while (version.match(".*\\.0$")) {
1078         version = version.substring(0, version.length - 2);
1079     }
1080     return version;
1081 };
1082 
1083 /**
1084  * Constructs the common version configure args based on build type and
1085  * other version inputs
1086  */
1087 var versionArgs = function(input, common) {
1088     var args = ["--with-version-build=" + common.build_number];
1089     if (input.build_type == "promoted") {
1090         args = concat(args,
1091                       // This needs to be changed when we start building release candidates
1092                       // with-version-pre must be set to ea for 'ea' and empty for fcs build
1093                       "--with-version-pre=",
1094                       "--without-version-opt");
1095     } else {
1096         args = concat(args, "--with-version-opt=" + common.build_id);
1097     }
1098     return args;
1099 }
1100 
1101 // Properties representation of the make/autoconf/version-numbers file. Lazily
1102 // initiated by the function below.
1103 var version_numbers;
1104 
1105 /**
1106  * Read the make/autoconf/version-numbers file into a Properties object.
1107  *
1108  * @returns {java.utilProperties}
1109  */
1110 var getVersionNumbers = function () {
1111     // Read version information from make/autoconf/version-numbers
1112     if (version_numbers == null) {
1113         version_numbers = new java.util.Properties();


1073     var version = (feature != null ? feature : version_numbers.get("DEFAULT_VERSION_FEATURE"))
1074         + "." + (interim != null ? interim : version_numbers.get("DEFAULT_VERSION_INTERIM"))
1075         + "." + (update != null ? update :  version_numbers.get("DEFAULT_VERSION_UPDATE"))
1076         + "." + (patch != null ? patch : version_numbers.get("DEFAULT_VERSION_PATCH"));
1077     while (version.match(".*\\.0$")) {
1078         version = version.substring(0, version.length - 2);
1079     }
1080     return version;
1081 };
1082 
1083 /**
1084  * Constructs the common version configure args based on build type and
1085  * other version inputs
1086  */
1087 var versionArgs = function(input, common) {
1088     var args = ["--with-version-build=" + common.build_number];
1089     if (input.build_type == "promoted") {
1090         args = concat(args,
1091                       // This needs to be changed when we start building release candidates
1092                       // with-version-pre must be set to ea for 'ea' and empty for fcs build
1093                       "--with-version-pre=ea",
1094                       "--without-version-opt");
1095     } else {
1096         args = concat(args, "--with-version-opt=" + common.build_id);
1097     }
1098     return args;
1099 }
1100 
1101 // Properties representation of the make/autoconf/version-numbers file. Lazily
1102 // initiated by the function below.
1103 var version_numbers;
1104 
1105 /**
1106  * Read the make/autoconf/version-numbers file into a Properties object.
1107  *
1108  * @returns {java.utilProperties}
1109  */
1110 var getVersionNumbers = function () {
1111     // Read version information from make/autoconf/version-numbers
1112     if (version_numbers == null) {
1113         version_numbers = new java.util.Properties();