Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A31AB106AD for ; Tue, 4 Nov 2014 14:46:47 +0000 (UTC) Received: (qmail 43442 invoked by uid 500); 4 Nov 2014 14:46:47 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 43402 invoked by uid 500); 4 Nov 2014 14:46:47 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 43384 invoked by uid 99); 4 Nov 2014 14:46:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2014 14:46:46 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS,TVD_FW_GRAPHIC_NAME_MID X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of eymorale@us.ibm.com designates 32.97.182.137 as permitted sender) Received: from [32.97.182.137] (HELO e7.ny.us.ibm.com) (32.97.182.137) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2014 14:46:40 +0000 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 4 Nov 2014 09:45:48 -0500 Received: from d01dlp02.pok.ibm.com (9.56.250.167) by e7.ny.us.ibm.com (192.168.1.107) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 4 Nov 2014 09:45:46 -0500 Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 5F9BB6E804A for ; Tue, 4 Nov 2014 09:45:39 -0500 (EST) Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sA4EjeWo21954668 for ; Tue, 4 Nov 2014 14:45:40 GMT Received: from d01av04.pok.ibm.com (localhost [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sA4EjeUV011279 for ; Tue, 4 Nov 2014 09:45:40 -0500 Received: from d01ml084.pok.ibm.com (d01ml084.pok.ibm.com [9.63.10.23]) by d01av04.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id sA4Ejedj011240 for ; Tue, 4 Nov 2014 09:45:40 -0500 In-Reply-To: <39C0E4EB-8FBA-4048-B2B6-76771755184B@gmail.com> References: <85A3E123BABF314D9D3656D0B418125643EC232A@FMSMSX103.amr.corp.intel.com> <85A3E123BABF314D9D3656D0B418125643EC3CB9@FMSMSX103.amr.corp.intel.com> <85A3E123BABF314D9D3656D0B418125643EC3E28@FMSMSX103.amr.corp.intel.com> <85A3E123BABF314D9D3656D0B418125643EC3EBD@FMSMSX103.amr.corp.intel.com> <39C0E4EB-8FBA-4048-B2B6-76771755184B@gmail.com> Subject: Re: cordova xxx add - is there a problem? X-KeepSent: 86BAFD72:E9C5A6C2-85257D86:004FACEF; type=4; name=$KeepSent To: dev@cordova.apache.org X-Mailer: IBM Notes Release 9.0.1 October 14, 2013 Message-ID: From: Edna Y Morales Date: Tue, 4 Nov 2014 09:45:38 -0500 X-MIMETrack: Serialize by Router on D01ML084/01/M/IBM(Release 9.0.1FP2|August 03, 2014) at 11/04/2014 09:45:39 MIME-Version: 1.0 Content-type: multipart/related; Boundary="0__=0ABBF715DFDC2A7F8f9e8a93df938690918c0ABBF715DFDC2A7F" X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14110414-0025-0000-0000-000000FD7D02 X-Virus-Checked: Checked by ClamAV on apache.org --0__=0ABBF715DFDC2A7F8f9e8a93df938690918c0ABBF715DFDC2A7F Content-type: multipart/alternative; Boundary="1__=0ABBF715DFDC2A7F8f9e8a93df938690918c0ABBF715DFDC2A7F" --1__=0ABBF715DFDC2A7F8f9e8a93df938690918c0ABBF715DFDC2A7F Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: quoted-printable I have started doing some work on this. Currently "platform add" does a= check to see if the OS supports the platform. If it does not, then it j= ust automatically throws an error without attempting to add it. I have chan= ged this to just print out a warning message and continue with the process.= The "prepare" command does not seem to be giving me any issues when I add a= platform for which the environment is not set up so I think it's safe t= o leave that. The next issue is to be sure that the platform's "check_reqs" is not getting called within the platform's create script. For Android, I beli= eve that was removed recently. Windows does not call it and I am currently working on converting the iOS bash scripts to nodejs in which I have removed the call to check_reqs. The check_reqs shouldn't be necessary u= ntil you build and run. The other thing to consider is what happens when you try to build using= the CLI for a platform that you don't have the environment set up for. Currently, what I have implemented is that it will just end the process= with an error on the first platform it hits that cannot be built. It wi= ll not try to build the remaining platforms. For example, if you are on a windows machine and you do "build ios android", it's going to error out= when it try to build iOS and just end the process there. This is to avo= id running the after_build hooks and to let the user know that they can't build for iOS. The idea there is that the user would skip building iOS = and just do "build android". That is what I have so far and am open to any feedback or suggestions. = My first priority is to get the iOS scripts converted to nodejs so that th= e iOS platform can be added even if you are on a nonsupported OS. Thanks, Edna Morales From: Marcel Kinard To: dev@cordova.apache.org Date: 11/03/2014 05:07 PM Subject: Re: cordova xxx add - is there a problem? Edna is doing some work in this area. https://issues.apache.org/jira/browse/CB-7803 On Nov 3, 2014, at 4:33 PM, Treggiari, Leo wr= ote: >> I think you would like for each developer to be able to be able to w= ork on any project regardless of locally available sdks, correct? > > Yes. Thanks. = --1__=0ABBF715DFDC2A7F8f9e8a93df938690918c0ABBF715DFDC2A7F Content-type: text/html; charset=US-ASCII Content-Disposition: inline Content-transfer-encoding: quoted-printable

I have started doing some work = on this. Currently "platform add" does a check to see if the = OS supports the platform. If it does not, then it just automatically th= rows an error without attempting to add it. I have changed this to just= print out a warning message and continue with the process. The "p= repare" command does not seem to be giving me any issues when I ad= d a platform for which the environment is not set up so I think it's sa= fe to leave that.

The next issue is to be sure that = the platform's "check_reqs" is not getting called within the = platform's create script. For Android, I believe that was removed recen= tly. Windows does not call it and I am currently working on converting = the iOS bash scripts to nodejs in which I have removed the call to chec= k_reqs. The check_reqs shouldn't be necessary until you build and run.<= /font>

The other thing to consider is wha= t happens when you try to build using the CLI for a platform that you d= on't have the environment set up for. Currently, what I have implemente= d is that it will just end the process with an error on the first platf= orm it hits that cannot be built. It will not try to build the remainin= g platforms. For example, if you are on a windows machine and you do &q= uot;build ios android", it's going to error out when it try to bui= ld iOS and just end the process there. This is to avoid running the aft= er_build hooks and to let the user know that they can't build for iOS. = The idea there is that the user would skip building iOS and just do &qu= ot;build android".

That is what I have so far and am = open to any feedback or suggestions. My first priority is to get the iO= S scripts converted to nodejs so that the iOS platform can be added eve= n if you are on a nonsupported OS.

Thanks,
Edna Morales

3D"InactiveMarcel Kinard ---11/03/2014 05:07:45 PM---Edna is doing some= work in this area. https://issues.apache.org/jira/browse/CB-7803 On Nov 3, 2014= ,

From: Marcel Kinard <cmarcelk@gmail.com&= gt;

To: dev@cordova.apache.org
Date: 11/03/2014 05:07 PM
Subject: = Re: cordova xxx add - is there a p= roblem?





Edna is doing some work in this area. = https://issues.apache.org/jira/browse/CB-7803

On Nov 3, 2014, at 4:33 PM, Treggiari, Leo <leo.treggiari@intel.com&= gt; wrote:

>> I think you would like for each developer to be able to be abl= e to work on any project regardless of locally available sdks, correct?=
>
> Yes.  Thanks.


= --1__=0ABBF715DFDC2A7F8f9e8a93df938690918c0ABBF715DFDC2A7F-- --0__=0ABBF715DFDC2A7F8f9e8a93df938690918c0ABBF715DFDC2A7F--