184 185 // Identifies the version of this format to the tool reading it. 186 // 1.1 signifies that the publish, publish-src and get-src features are usable. 187 // 1.2 signifies that artifact uploads should fail on missing artifacts by default. 188 data.format_version = "1.2"; 189 190 // Organization, product and version are used when uploading/publishing build results 191 data.organization = ""; 192 data.product = "jdk"; 193 data.version = getVersion(); 194 195 // The base directory for the build output. JIB will assume that the 196 // actual build directory will be <output_basedir>/<configuration> 197 data.output_basedir = "build"; 198 // The configure argument to use to specify the name of the configuration 199 data.configuration_configure_arg = "--with-conf-name="; 200 // The make argument to use to specify the name of the configuration 201 data.configuration_make_arg = "CONF_NAME="; 202 203 // Exclude list to use when Jib creates a source bundle 204 data.src_bundle_excludes = "./build .build webrev* */webrev* */*/webrev* */*/*/webrev* .hg */.hg */*/.hg */*/*/.hg"; 205 // Include list to use when creating a minimal jib source bundle which 206 // contains just the jib configuration files. 207 data.conf_bundle_includes = "*/conf/jib-profiles.* make/autoconf/version-numbers" 208 209 // Define some common values 210 var common = getJibProfilesCommon(input, data); 211 // Generate the profiles part of the configuration 212 data.profiles = getJibProfilesProfiles(input, common, data); 213 // Generate the dependencies part of the configuration 214 data.dependencies = getJibProfilesDependencies(input, common, data); 215 216 return data; 217 }; 218 219 /** 220 * Generates some common values 221 * 222 * @param input External data to use for generating the configuration 223 * @returns Common values 224 */ 225 var getJibProfilesCommon = function (input, data) { 226 var common = {}; 227 | 184 185 // Identifies the version of this format to the tool reading it. 186 // 1.1 signifies that the publish, publish-src and get-src features are usable. 187 // 1.2 signifies that artifact uploads should fail on missing artifacts by default. 188 data.format_version = "1.2"; 189 190 // Organization, product and version are used when uploading/publishing build results 191 data.organization = ""; 192 data.product = "jdk"; 193 data.version = getVersion(); 194 195 // The base directory for the build output. JIB will assume that the 196 // actual build directory will be <output_basedir>/<configuration> 197 data.output_basedir = "build"; 198 // The configure argument to use to specify the name of the configuration 199 data.configuration_configure_arg = "--with-conf-name="; 200 // The make argument to use to specify the name of the configuration 201 data.configuration_make_arg = "CONF_NAME="; 202 203 // Exclude list to use when Jib creates a source bundle 204 data.src_bundle_excludes = [ 205 "build", "{,**/}webrev*", "{,**/}.hg", "{,**/}JTwork", "{,**/}JTreport", 206 "{,**/}.git" 207 ]; 208 // Include list to use when creating a minimal jib source bundle which 209 // contains just the jib configuration files. 210 data.conf_bundle_includes = [ 211 "make/autoconf/version-numbers", 212 ]; 213 214 // Define some common values 215 var common = getJibProfilesCommon(input, data); 216 // Generate the profiles part of the configuration 217 data.profiles = getJibProfilesProfiles(input, common, data); 218 // Generate the dependencies part of the configuration 219 data.dependencies = getJibProfilesDependencies(input, common, data); 220 221 return data; 222 }; 223 224 /** 225 * Generates some common values 226 * 227 * @param input External data to use for generating the configuration 228 * @returns Common values 229 */ 230 var getJibProfilesCommon = function (input, data) { 231 var common = {}; 232 |