cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5082) add BB10 support in doPlatform()
Date Wed, 26 Mar 2014 19:15:19 GMT

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

ASF GitHub Bot commented on CB-5082:
------------------------------------

Github user jsoref commented on a diff in the pull request:

    https://github.com/apache/cordova-cli/pull/152#discussion_r10993531
  
    --- Diff: src/info-utils.js ---
    @@ -0,0 +1,132 @@
    +/**
    +	Licensed to the Apache Software Foundation (ASF) under one
    +	or more contributor license agreements.  See the NOTICE file
    +	distributed with this work for additional information
    +	regarding copyright ownership.  The ASF licenses this file
    +	to you under the Apache License, Version 2.0 (the
    +	"License"); you may not use this file except in compliance
    +	with the License.  You may obtain a copy of the License at
    +
    +	http://www.apache.org/licenses/LICENSE-2.0
    +
    +	Unless required by applicable law or agreed to in writing,
    +	software distributed under the License is distributed on an
    +	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    +	KIND, either express or implied.  See the License for the
    +	specific language governing permissions and limitations
    +	under the License.
    +*/
    +var cordova_util  = require('./util'),
    +child_process = require('child_process'),
    +path          = require('path'),
    +fs            = require('fs'),
    +_self;
    +
    +_self = {
    +	
    +getNodeInfo: function( callback ){
    +		callback(_self.execFunc('node', '--version', function(call){callback(call);}));
    +	},
    +	
    +getCordovaInfo: function( callback ){
    +		callback(_self.execFunc('cordova', '--version', function(call){callback(call);}));
    +	},
    +	
    +getPlatformInfo: function(platform, projectRoot, callback ){
    +		var command="", args="";
    +		switch( platform ){
    +		case "ios":
    +			_self.execFunc('xcodebuild', '-version', function(call){callback('iOS Platform:\r\r'
+call);});
    +			break;
    +		case "android":
    +			_self.execFunc('android', 'list target', function(call){callback('Android Platform:\r\r'
+call);});
    +			break;
    +		case "blackberry10":
    +			var bbUtilsPath = path.join(projectRoot, 'platforms', platform, 'cordova'),
    +			bbBuildPath= path.join(projectRoot, 'platforms', platform, 'build'),
    +			bbresults="";
    +			//get CORDOVA_BBTOOLS environment variable.
    +			_self.get_pathEnv( ['blackberry-nativepackager', 'blackberry-deploy'], function (path){
    +				if(path){
    +					//set CORDOVA_BBTOOLS environment variable.
    +					_self.setEnv_Var('CORDOVA_BBTOOLS', path);
    +					// Get BB10 SDK Version
    +					_self.getSDKinfo(bbUtilsPath, function(result){
    +						if(result){bbresults+="Blackberry 10 NDK version: "+result+"\r";
    +							// Get BB10 deployed and stored devices
    +							_self.deployedDevices(bbUtilsPath, 'device', false, function(result){
    +								if(result){bbresults+="\rBlackberry 10 deployed devices:\r"+result+"\r";
    +									// Get BB10 deployed and stored emulators
    +									_self.deployedDevices(bbUtilsPath, 'emulator', false, function (result){
    +										if(result){bbresults+="\rBlackberry deployed emulator:\r"+result+"\r";
    +											callback('Blackberry10 Platform:\r\r' +bbresults);		
    +										}});
    +								}});
    +						}});
    +					
    +				}
    +				else{callback("Blackberry 10 NDK path not found");}
    --- End diff --
    
    Please don't misspell the brand.


> add BB10 support in doPlatform()
> --------------------------------
>
>                 Key: CB-5082
>                 URL: https://issues.apache.org/jira/browse/CB-5082
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: CLI
>            Reporter: Marcel Kinard
>            Assignee: Martin Gonzalez
>            Priority: Minor
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message