< prev index next >

make/conf/jib-profiles.js

Print this page

1414     if (common.build_number != 0) {
1415         args = concat(args, "--with-version-build=" + common.build_number);
1416     }
1417     if (input.build_type == "promoted") {
1418         args = concat(args,
1419                       "--with-version-pre=" + version_numbers.get("DEFAULT_PROMOTED_VERSION_PRE"),
1420                       "--without-version-opt");
1421     } else if (input.build_type == "ci") {
1422         var ciBuildNumber = input.build_id_data.ciBuildNumber;
1423         var preString = input.build_id_data.projectName;
1424         if (preString == "jdk") {
1425             preString = version_numbers.get("DEFAULT_PROMOTED_VERSION_PRE");
1426         }
1427         args = concat(args, "--with-version-pre=" + preString,
1428                       "--with-version-opt=" + ciBuildNumber);
1429         if (input.target_os == "macosx") {
1430             args = concat(args, "--with-macosx-bundle-build-version="
1431                           + common.build_number + "." + ciBuildNumber);
1432         }
1433     } else {

1434         args = concat(args, "--with-version-opt=" + common.build_id);
1435     }
1436     var sourceDate
1437     if (input.build_id_data && input.build_id_data.creationTime) {
1438         sourceDate = Math.floor(Date.parse(input.build_id_data.creationTime)/1000);
1439     } else {
1440         sourceDate = "current";
1441     }
1442     args = concat(args, "--with-source-date=" + sourceDate);
1443 
1444     return args;
1445 }
1446 
1447 // Properties representation of the make/conf/version-numbers.conf file. Lazily
1448 // initiated by the function below.
1449 var version_numbers;
1450 
1451 /**
1452  * Read the make/conf/version-numbers.conf file into a Properties object.
1453  *

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