Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 91511CE3B for ; Tue, 5 Jun 2012 01:10:26 +0000 (UTC) Received: (qmail 88253 invoked by uid 500); 5 Jun 2012 01:10:26 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 88200 invoked by uid 500); 5 Jun 2012 01:10:26 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 88192 invoked by uid 99); 5 Jun 2012 01:10:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 01:10:26 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of purplecabbage@gmail.com designates 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-wi0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 01:10:22 +0000 Received: by wibhm14 with SMTP id hm14so2643583wib.0 for ; Mon, 04 Jun 2012 18:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5vx4F2j0K6gAhQcjsCr2c8pd49F5mrANBxFQQNZt7rQ=; b=D/cgEEGQo5r90pev+w0eNNbhPzurfkgXWByS5mx+pgYriiQ3i+34cde5agm73blBmR 5goLBt1Mz0RabzRUlUyj6Jc25XLVqijM0QjyYcaU05uFdrSqT/hOOKKXA+T/u5ij/SEh mcHXmOuvylHs6EBpPSM6i8r9PC0LSHkYvVg1VeLL0QY6nkp/TGYuOk4puq7MgsyAr4al pfZ0JGRvnfH7LiRSXzeCRgMCtqFo0BS1OxmKB5xwn36IJgfnt76H4Z6oBkZxQi5gpahD OkaMzdiIwZkQzT8WYI3gr5HP6gDqd2wNvoiSbq52/gkwydMLpWvAm1oT9vhvkh7Xw3n3 115Q== MIME-Version: 1.0 Received: by 10.216.144.201 with SMTP id n51mr5078044wej.73.1338858600924; Mon, 04 Jun 2012 18:10:00 -0700 (PDT) Received: by 10.216.144.41 with HTTP; Mon, 4 Jun 2012 18:10:00 -0700 (PDT) In-Reply-To: References: Date: Mon, 4 Jun 2012 18:10:00 -0700 Message-ID: Subject: Re: Command Line Tooling From: Jesse To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=0016e6de063950072e04c1af4f49 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6de063950072e04c1af4f49 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Test that the script cannot receive params that would make it overwrite itself or any of it's own required files? On Mon, Jun 4, 2012 at 6:05 PM, Anis KADRI wrote: > > https://github.com/imhotep/incubator-cordova-android/blob/master/bin/test= _create2.js > > FYI I did not use any testing framework because I don't like dependencies > and this is so simple that I don't think it deserves it. I guess this > onewould have been cool. > > Anyhow, take a look and let me know if there is anything else I should be > testing for. > > Summary of what's beeing tested (although quiet obvious in the file itsel= f > ;): > > - project gets created > - project has all the files it needs to compile (main activity, > AndroidManifest.xml, plugins.xml, cordova.xml, ...). > - build project gets cleaned up properly (from common-codecs.jar etc..). > - project compiles > - package file exists > > Anis > > On Thu, May 31, 2012 at 5:02 PM, Dave Johnson > wrote: > > Can we also commit some tests along with this new script? > > > > On Fri, Jun 1, 2012 at 6:59 AM, Joe Bowser wrote: > >> I'm starting to think that this shed is mostly paint now. That's what > >> makes it lightweight! > >> > >> On Thu, May 31, 2012 at 1:57 PM, Brian LeRoux wrote: > >> > >>> truth! I forgot they went that way again. (this shed has seen many > >>> coats of paint) > >>> > >>> On Thu, May 31, 2012 at 1:46 PM, Anis KADRI > wrote: > >>> > Sure but just to remind you that with the current _create_ it is ev= en > >>> more > >>> > verbose as android's update and create projects are *REALLY* verbos= e > ;) > >>> > I can definitely add a "-v" flag and make sure that the messages > display > >>> > only if that option is passed. > >>> > > >>> > On Thu, May 31, 2012 at 1:40 PM, Brian LeRoux wrote: > >>> > > >>> >> love everything except the echo stuff; could we add a quiet flag? > only > >>> >> want noise if something breaks > >>> >> > >>> >> On Thu, May 31, 2012 at 12:39 PM, Anis KADRI > >>> wrote: > >>> >> > Hi guys, > >>> >> > > >>> >> > I did not want to mess with the current client tools for Android > so I > >>> >> > created a new create script and called it create2. > >>> >> > > >>> >> > The advantages of my script compared to the current one: > >>> >> > - It's only one script. It doesn't use a hidden .cordova directo= ry > and > >>> >> > doesn't use a secondary create script to work. > >>> >> > - It can be run from anywhere in the filesystem and you don't ha= ve > to > >>> be > >>> >> in > >>> >> > the repository folder to run it. > >>> >> > - It checks if the android SDK tools are present in the user's > PATH > >>> >> > - It has a usage helper > >>> >> > - It's not too verbose but verbose enough to know when something > goes > >>> >> wrong. > >>> >> > - It doesn't delete a project if it already exists. > >>> >> > - It cleans up after it's done and when it fails. > >>> >> > - It uses some simple templates and doesn't have the sed usage b= ug > >>> that > >>> >> the > >>> >> > current one has. (ie: it doesn't create an AndroidManifest.xml-e > or > >>> >> > exampleActivity.java-e) > >>> >> > - ... probably more things that I have forgotten. > >>> >> > > >>> >> > It can easily replace the current one but I wanted to get it > reviewed > >>> >> first. > >>> >> > > >>> >> > > >>> >> > >>> > > https://github.com/imhotep/incubator-cordova-android/blob/master/bin/crea= te2 > >>> >> > > >>> >> > If you want to test it out just pull from the repository and run > that > >>> >> > create2 script from anywhere. > >>> >> > > >>> >> > What do you guys think ? > >>> >> > > >>> >> > Anis > >>> >> > > >>> >> > On Thu, May 10, 2012 at 1:00 PM, Filip Maj wrote= : > >>> >> > > >>> >> >> http://incubator.apache.org/cordova/ > >>> >> >> > >>> >> >> > >>> >> >> Click mailing list > >>> >> >> > >>> >> >> Send an email to all *-unsubscribe emails you see. > >>> >> >> > >>> >> >> On 5/10/12 12:51 PM, "Mike Flores" > wrote: > >>> >> >> > >>> >> >> > > >>> >> >> >How can I unsubscribe from all emails from apache?? > >>> >> >> > > >>> >> >> >On 5/10/12 4:49 AM, "Jan Becicka" > wrote: > >>> >> >> > > >>> >> >> >>I'm sorry, I feel stupid=C5=A0 > >>> >> >> >>I simply don't see it. I use phonegap 1.7.0 from > phonegap.comand > >>> >> it's > >>> >> >> >>default installation does not create any bin folder. > >>> >> >> >> > >>> >> >> >>I tried to find all "create" files on my disk and it is not > here. > >>> >> >> >>I'm really confused, because I see, that the files are in the > git > >>> >> >> >>repository, but it looks like they are not in phone gap binar= y > >>> >> >> >>distribution=C5=A0 > >>> >> >> >>Thanks, > >>> >> >> >>Jan > >>> >> >> >> > >>> >> >> >> > >>> >> >> >>> yup it does in ./bin, also keep an eye here: > >>> >> >> >>> https://issues.apache.org/jira/browse/CB-630 > >>> >> >> >>> > >>> >> >> >>> > >>> >> >> >>> On Fri, May 4, 2012 at 4:13 AM, Jan Becicka < > >>> Jan.Becicka@seznam.cz> > >>> >> >> >>>wrote: > >>> >> >> >>> Hm, it looks like iOS does not have such tools=C5=A0 Or did= I miss > >>> >> >> >>>something? > >>> >> >> >>> Regards, > >>> >> >> >>> Jan > >>> >> >> >>> > >>> >> >> >>> > >>> >> >> >>>> Every platform has its own set of CLI tools at the moment. > >>> >> >> >>>> > >>> >> >> >>>> See each platform's README file. Android and > BlackBerry-webworks > >>> >> have > >>> >> >> >>>>the > >>> >> >> >>>> ones I am most familiar with. Android has a bash script th= at > you > >>> >> can > >>> >> >> >>>>use > >>> >> >> >>>> to create projects (./bin/create), and blackberry-webworks > has a > >>> >> >> >>>> cordova-level ant file (for creating projects, a la ant > create > >>> >> >> >>>> -Dproject.path=3D~/myapp) and a project-level ant file for > >>> deploying, > >>> >> >> >>>> running on simulator, signing, etc. > >>> >> >> >>>> > >>> >> >> >>>> On 4/27/12 4:00 AM, "Patrick Mueller" > >>> wrote: > >>> >> >> >>>> > >>> >> >> >>>> >On Fri, Apr 27, 2012 at 03:58, Jan Becicka < > >>> Jan.Becicka@seznam.cz > >>> >> > > >>> >> >> >>>>wrote: > >>> >> >> >>>> > > >>> >> >> >>>> >> I'm looking at > >>> >> >> >>>>http://wiki.apache.org/cordova/CommandLineToolingDesign > >>> >> >> >>>> >> and I'd like to ask for help. > >>> >> >> >>>> >> This document describes command line tool "cordova" but > it > >>> looks > >>> >> >> >>>>like > >>> >> >> >>>> >>this > >>> >> >> >>>> >> tool is not distributed with phonegap. Is this tool > already > >>> >> >> >>>>available > >>> >> >> >>>> >> somewhere or is the document just proposal for new > tooling > >>> >> support? > >>> >> >> >>>> >> If this is just a proposal, is it tracked somewhere? > >>> >> >> >>>> >> > >>> >> >> >>>> > > >>> >> >> >>>> >The document you referenced is just some thoughts I wrote > down > >>> >> once > >>> >> >> >>>>when I > >>> >> >> >>>> >had a bit of time to do so. There is no tool, just that > >>> document. > >>> >> >> >>>>The > >>> >> >> >>>> >proposal isn't tracked anywhere yet - I'm not a fan of > >>> >> >> >>>>super-long-lived > >>> >> >> >>>> >bug > >>> >> >> >>>> >reports; I was thinking more than once we settle on a > design, > >>> we > >>> >> can > >>> >> >> >>>>start > >>> >> >> >>>> >writing bugs to implement it. > >>> >> >> >>>> > > >>> >> >> >>>> > > >>> >> >> >>>> >> Or is there any other command line tool for creating > cordova > >>> >> >> >>>>projects? > >>> >> >> >>>> >> > >>> >> >> >>>> > > >>> >> >> >>>> >There are some command-line tools available with some > >>> platforms - > >>> >> I'm > >>> >> >> >>>>not > >>> >> >> >>>> >familiar with them, someone else can chime in on those. > >>> >> >> >>>> > > >>> >> >> >>>> >-- > >>> >> >> >>>> >Patrick Mueller > >>> >> >> >>>> >http://muellerware.org > >>> >> >> > > >>> >> >> > > >>> >> >> > >>> >> >> > >>> >> > >>> > --=20 @purplecabbage risingj.com --0016e6de063950072e04c1af4f49--