< prev index next >

make/conf/jib-profiles.js

Print this page

1427     if (common.build_number != 0) {
1428         args = concat(args, "--with-version-build=" + common.build_number);
1429     }
1430     if (input.build_type == "promoted") {
1431         args = concat(args,
1432                       "--with-version-pre=" + version_numbers.get("DEFAULT_PROMOTED_VERSION_PRE"),
1433                       "--without-version-opt");
1434     } else if (input.build_type == "ci") {
1435         var ciBuildNumber = input.build_id_data.ciBuildNumber;
1436         var preString = input.build_id_data.projectName;
1437         if (preString == "jdk") {
1438             preString = version_numbers.get("DEFAULT_PROMOTED_VERSION_PRE");
1439         }
1440         args = concat(args, "--with-version-pre=" + preString,
1441                       "--with-version-opt=" + ciBuildNumber);
1442         if (input.target_os == "macosx") {
1443             args = concat(args, "--with-macosx-bundle-build-version="
1444                           + common.build_number + "." + ciBuildNumber);
1445         }
1446     } else {

1447         args = concat(args, "--with-version-opt=" + common.build_id);
1448     }
1449     var sourceDate
1450     if (input.build_id_data && input.build_id_data.creationTime) {
1451         sourceDate = Math.floor(Date.parse(input.build_id_data.creationTime)/1000);
1452     } else {
1453         sourceDate = "current";
1454     }
1455     args = concat(args, "--with-source-date=" + sourceDate);
1456 
1457     return args;
1458 }
1459 
1460 // Properties representation of the make/conf/version-numbers.conf file. Lazily
1461 // initiated by the function below.
1462 var version_numbers;
1463 
1464 /**
1465  * Read the make/conf/version-numbers.conf file into a Properties object.
1466  *

1427     if (common.build_number != 0) {
1428         args = concat(args, "--with-version-build=" + common.build_number);
1429     }
1430     if (input.build_type == "promoted") {
1431         args = concat(args,
1432                       "--with-version-pre=" + version_numbers.get("DEFAULT_PROMOTED_VERSION_PRE"),
1433                       "--without-version-opt");
1434     } else if (input.build_type == "ci") {
1435         var ciBuildNumber = input.build_id_data.ciBuildNumber;
1436         var preString = input.build_id_data.projectName;
1437         if (preString == "jdk") {
1438             preString = version_numbers.get("DEFAULT_PROMOTED_VERSION_PRE");
1439         }
1440         args = concat(args, "--with-version-pre=" + preString,
1441                       "--with-version-opt=" + ciBuildNumber);
1442         if (input.target_os == "macosx") {
1443             args = concat(args, "--with-macosx-bundle-build-version="
1444                           + common.build_number + "." + ciBuildNumber);
1445         }
1446     } else {
1447         args = concat(args, "--with-version-pre=" + version_numbers.get("DEFAULT_PROMOTED_VERSION_PRE"));
1448         args = concat(args, "--with-version-opt=" + common.build_id);
1449     }
1450     var sourceDate
1451     if (input.build_id_data && input.build_id_data.creationTime) {
1452         sourceDate = Math.floor(Date.parse(input.build_id_data.creationTime)/1000);
1453     } else {
1454         sourceDate = "current";
1455     }
1456     args = concat(args, "--with-source-date=" + sourceDate);
1457 
1458     return args;
1459 }
1460 
1461 // Properties representation of the make/conf/version-numbers.conf file. Lazily
1462 // initiated by the function below.
1463 var version_numbers;
1464 
1465 /**
1466  * Read the make/conf/version-numbers.conf file into a Properties object.
1467  *
< prev index next >