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 B0E04D71A for ; Mon, 17 Sep 2012 06:07:33 +0000 (UTC) Received: (qmail 83231 invoked by uid 500); 17 Sep 2012 06:07:33 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 83151 invoked by uid 500); 17 Sep 2012 06:07:33 -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 82065 invoked by uid 99); 17 Sep 2012 06:07:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2012 06:07:31 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brian.leroux@gmail.com designates 74.125.83.47 as permitted sender) Received: from [74.125.83.47] (HELO mail-ee0-f47.google.com) (74.125.83.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2012 06:07:25 +0000 Received: by eekb57 with SMTP id b57so2777813eek.6 for ; Sun, 16 Sep 2012 23:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=P1wzbleMDVzrzLDVpOhtdcXEDbvVntfdd2NlW2+krmY=; b=D30AGbFzbSCyEmzaZAFpu9CgtHHJhKmDiPrmvwrAVgo25Ip2i8CnYsZalJiV4GwMGv 54H6l6aof9In2F4DhtnX0vkTeHyk8tzbdmUYn1sC5MxgwY4UHHr08dh7JCz4C/9VbLEu jQzssD5AttcQ2o7G8HFVDSs2pUHgAUmwCAbkZrYzj9n6iqbLqRnx+Gy2Oeafqf9e0tA/ 6+nICtZ2K6WEY15CNJ713fe3FUNSEacP/e9d0R3TVT4eDUS7o9ewP8KVg2/rzcDA8RZx xe10EOrzud7Ho+D16TVKedy3KwcyrYd/iVTCDLreL07vVW2W8Wr4bhpQ3GUE3KmP8iKi tRTg== MIME-Version: 1.0 Received: by 10.14.179.200 with SMTP id h48mr12198104eem.12.1347862025525; Sun, 16 Sep 2012 23:07:05 -0700 (PDT) Sender: brian.leroux@gmail.com Received: by 10.14.95.75 with HTTP; Sun, 16 Sep 2012 23:07:05 -0700 (PDT) In-Reply-To: References: Date: Sun, 16 Sep 2012 23:07:05 -0700 X-Google-Sender-Auth: ebYR0ksGNCp0EHkUx3qSQf3DqGY Message-ID: Subject: Re: plugin tooling/specification From: Brian LeRoux To: callback-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 TL;DR +1 for building in functionality that clobbers the native bits every time and treats them as a build artifact. *** FWIW, this was the cause of bugs in the cordova prototype stuff I did. Ppl would generate a native project, then modify the native bits, while using the tools to copy in fresh WWW assets... then when an upgrade happened everything was fucked. Our goal should be to make it so that the only path to modifying generated native bits should be either plugins, or upgrades to cordova config.xml. On Sun, Sep 16, 2012 at 4:47 AM, Anis KADRI wrote: > Right. In that case, we could make those cordova command tools slightly > smarter ;) > > On Sat, Sep 15, 2012 at 7:29 PM, Filip Maj wrote: > >> Right. I'm ok with this but wanted to keep the exact cordova-powered >> platform projects as untouched as possible, so you could cd into those >> directories and do whatever you want (run usual cordova project commands, >> compile, etc). So removing the www from there forces everyone to always go >> through the tool. >> >> On 9/15/12 7:23 PM, "Anis KADRI" wrote: >> >> >On Sat, Sep 15, 2012 at 5:32 PM, Filip Maj wrote: >> > >> >> >> >> >Ohhh I think I understand. So basically it packages the www resources >> >>into >> >> >the binary at build time? >> >> >> >> Correct. Each platform's underlying implementation has its own "www" >> >> folder. At build time, the top-level www of your project gets copied >> >>into >> >> each platform before doing a compile for that platform. >> >> >> >> >> platforms/xxx/www gets destroyed and recreated on every build. See >> >> >> here. >> >> >> It's needed to build packages for every platform. It could arguably >> >>be >> >> >> destroyed after every build though. Fil is there a reason why that's >> >>not >> >> >> the case ? >> >> >> >> That is the case is it not? Line 57? >> >> >> >> Or do you mean, we should delete the platforms//www (or >> >> equivalent) after building? >> >> >> > >> >Yes that's what I meant. >> > >> > >> >> >> >> If the latter, I don't see the point. >> >> >> > >> >To avoid confusion. The reason why we're discussing this is because Mike >> >got confused after seeing the root www and a www in each platform >> >subfolder. There is also no reason to keep them around since they get >> >destroyed before every build anyway. So maybe they should just get >> >destroyed _after_ every build. You'd just recursively copy the folder >> >before every build. I don't really care either way. Just trying to avoid >> >the "Where do I drop my code?" scenario. >> >>