scripts/lib/chcpBuildOptions.js
function getBuildConfigurationByName(ctx, buildName) {
  // load options from the chcpbuild.options file
  var chcpBuildOptions = getBuildOptionsFromConfig(ctx);
  if (chcpBuildOptions == null) {
    return null;
  }

  var resultConfig = chcpBuildOptions[buildName];
  if (!resultConfig) {
    return null;
  }

  // backwards capability
  // TODO: remove this in the next versions
  if (resultConfig['config-file'] && !resultConfig['config-file']['url']) {
    var url = resultConfig['config-file'];
    resultConfig['config-file'] = {
      'url': url
    };
  }

  return resultConfig;
}
function getBuildConfigurationByName(ctx, buildName) {
  // load options from the chcpbuild.options file
  var chcpBuildOptions = getBuildOptionsFromConfig(ctx);
  if (chcpBuildOptions == null) {
    return null;
  }

  var resultConfig = chcpBuildOptions[buildName];
  if (!resultConfig) {
    return null;
  }

  // backwards capability
  // TODO: remove this in the next versions
  if (resultConfig['config-file'] && !resultConfig['config-file']['url']) {
    var url = resultConfig['config-file'];
    resultConfig['config-file'] = {
      'url': url
    };
  }

  return resultConfig;
}
function getBuildConfigurationByName ( ctx , buildName ) { // load options from the chcpbuild.options file var chcpBuildOptions = getBuildOptionsFromConfig ( ctx ) ; if ( chcpBuildOptions == null ) { return null ; } var resultConfig = chcpBuildOptions [ buildName ] ; if ( ! resultConfig ) { return null ; } // backwards capability // TODO: remove this in the next versions if ( resultConfig [ 'config-file' ] && ! resultConfig [ 'config-file' ] [ 'url' ] ) { var url = resultConfig [ 'config-file' ] ; resultConfig [ 'config-file' ] = { 'url' : url } ; } return resultConfig ; }
region Public API 
Generate build options depending on the options, provided in console.

@param {String} buildName - build identifier
@return {Object} build options; null - if none are found
region Public API Generate build options depending on the options provided in console .