[ 
https://issues.apache.org/jira/browse/CB-5362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13820402#comment-13820402
 ] 

JennyGee commented on CB-5362:
------------------------------

The following is from crawing through the code using node-inspector

console:
Downloading blackberry10 library for blackberry10...

functions as they're reached:
    at module.exports.plat 
(/Users/jgee/REPOS/cordova3.2/cordova-cli/src/platform.js:72:36)
            var config_json = config.read(projectRoot);
                            var template = config_json.lib && 
config_json.lib[t] && config_json.lib[t].template || null;
                            return call_into_create(t, projectRoot, cfg, 
libDir, template);

    at call_into_create 
(/Users/jgee/REPOS/cordova3.2/cordova-cli/src/platform.js:223:31)
function call_into_create(target, projectRoot, cfg, libDir, template_dir) {
libDir => "/Users/jgee/REPOS/cordova3.2/cordova-blackberry/blackberry10"
        return module.exports.supports(projectRoot, target)
        .then(function() {
--> code in here will never be executed, but it would use libDir if it were 
reached...

    at Function.module.exports.supports 
(/Users/jgee/REPOS/cordova3.2/cordova-cli/src/platform.js:202:27)
module.exports.supports = function(project_root, name) {
    return platformParser.check_requirements(project_root);

    at Function.module.exports.check_requirements 
(/Users/jgee/REPOS/cordova3.2/cordova-cli/src/metadata/blackberry10_parser.js:40:5)
module.exports.check_requirements = function(project_root) {
    var lib_path = path.join(util.libDirectory, 'blackberry10', 'cordova', 
require('../../platforms').blackberry10.version);

> URI parameter should be able to handle local repo
> -------------------------------------------------
>
>                 Key: CB-5362
>                 URL: https://issues.apache.org/jira/browse/CB-5362
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: JennyGee
>            Priority: Minor
>
> (In cases where you have multiple copies of the pre-released cordova library 
> and quickly switch between them.) In the project directory, you can have the 
> following .cordova/config.json, and set:
> {code:javascript}
> {...
>    "lib": {
>        "android": {
>            "version": "dev",
>            "uri": "/some/local/path",
>            "id": "cordova-android-dev"
>        }
>    }
> }
> Where the URI can specify some local REPO.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to