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 6DD0D10EAB for ; Mon, 6 Jan 2014 19:59:47 +0000 (UTC) Received: (qmail 89945 invoked by uid 500); 6 Jan 2014 19:59:47 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 89919 invoked by uid 500); 6 Jan 2014 19:59: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 89911 invoked by uid 99); 6 Jan 2014 19:59:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jan 2014 19:59:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mmocny@google.com designates 209.85.128.179 as permitted sender) Received: from [209.85.128.179] (HELO mail-ve0-f179.google.com) (209.85.128.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jan 2014 19:59:42 +0000 Received: by mail-ve0-f179.google.com with SMTP id jw12so9280251veb.24 for ; Mon, 06 Jan 2014 11:59:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=kNPbx/9fjptpx7rIGR70uvbDZI1ZYOvS4S0TO8ARY7I=; b=hh94CiLzmWZ2WbKKTjHlc74JTS7Lcf+RXittz7rTsYSXvGdToY/mj+IXUiehwkWFhN PcstqzIqvIUYpoATBPOXLFoVm8II/f/iMUIK3l0IUlQJcLMOIuuSjS50dsu25hxOwCSq vKdYbI426CSpDVqUBeRgwcCcrwYuT1vey2tN04iXVdEjIrULWkWfZVVTsE5ebTbjvhAA VQIxU2pjy2UIbrWCjPEaxfQInGSZX1TyMxVLO9hi8tF/nReuFTQxLEZtpDioF9uVbYnJ SFaI4jQaWdG2nRDrizcmcf9Ke9CLL9PZ5asYZeLxMwr8SCN9O9NhR/GXTfGdidNao+55 bsCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=kNPbx/9fjptpx7rIGR70uvbDZI1ZYOvS4S0TO8ARY7I=; b=SgO9ppKjFNDarbcOwoKAA2EbVKu21GoF8kTn6VuTWL/np1HpWVxVo2qflzVvZkdP+T W9g//Ct2aOt0DJhasz+vp6XBc9zuiOA8yqVUgwA7g1ae9CvVQv5t1VCF9zG/AR9mF/mP pOGyVN8P74ZT0/t8K1jJXZ4ab1Av1dis45K2E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=kNPbx/9fjptpx7rIGR70uvbDZI1ZYOvS4S0TO8ARY7I=; b=m/phH+g+DkZ25A1rP4Rf0sBkcwlvX2qEXM3nIJktez298rEmNwLmmgokxkuPxD6u6f wzZq1ffPdIJ34k3QjnSZLVRnusRrjo9gsQfvg05XYH3H+f/M6GLCHEC6fBIZFvjv3n6G gXFkCPWKDv+5QXe1mWVuorXFPRwAXTocRdfnJ7wNO1a6ruwp4zHWGb+1ZjbXsyHyD3ce oGT7EKNjaEnESNnsXhgipVgYHaQ4ZONxdQma2aMvS4IsjkEheH8w0PDOLVyZVdfjl/H2 RzElnGfUVPQXwkTrJI2XrtGmq2dtcgIKyxG7YsOtlRdfjbrH7P39iDiKtlG7pfflexTk Lg1w== X-Gm-Message-State: ALoCoQm+beJ3/A1J+0iqFNl6WtkHTSbrvSVarxGvLjSNOm+jZKVQb8YiLDtGh7i6QOBxYp5kpGMQDq9e4X2zuhp8p/Gi/HUmAMmAdjyhhUcdPsu4ZAeIPmf0+tbbmlN8SLWrP3/NsXarPhNzqLqFscD8kC3HnJjH7NpeHey7YpWG/x0Kl/dY2TXv7XNoP2/YMEO7sKEC+aGT3M1VJxsRJGllstVZ3kPogg== X-Received: by 10.58.181.71 with SMTP id du7mr5778340vec.25.1389038361995; Mon, 06 Jan 2014 11:59:21 -0800 (PST) MIME-Version: 1.0 Sender: mmocny@google.com Received: by 10.52.36.231 with HTTP; Mon, 6 Jan 2014 11:59:01 -0800 (PST) In-Reply-To: References: <20140102191557.GA60279@gmail.com> <20140102203149.GB60279@gmail.com> From: Michal Mocny Date: Mon, 6 Jan 2014 14:59:01 -0500 X-Google-Sender-Auth: 5zxpfYlEGXOaudOThMj8cIheXeo Message-ID: Subject: Re: Moving .cordova/config.json -> cordova.json To: dev Content-Type: multipart/alternative; boundary=047d7b873810257f0204ef52b207 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b873810257f0204ef52b207 Content-Type: text/plain; charset=UTF-8 If we don't add a config.json by default, we need a new strategy for looking up paths for the root. I don't like naming the top-level config "config.xml", but after some thoughts on it, I don't think we should rename it just right now. There are a lot of changes that would need to go along with that rename for it to make any sense. I also agree with Brian that what we really need is to step back and consider an entirely better solution rather than something incremental. Perhaps this is good subject matter for the next hangout / meet-up. -Michal On Fri, Jan 3, 2014 at 2:43 PM, Brian LeRoux wrote: > probably a good idea for the moment / at some we will have a config file > reckoning! > > > On Fri, Jan 3, 2014 at 11:34 AM, Andrew Grieve > wrote: > > > Okay, yeah, reading that back to myself and it seems like a bad idea > > (config.xml->app.xml). Probably would just add to confusion. > > > > So, top-level config.xml and top-level cordova.json. > > > > Maybe I could add to this that we don't create a cordova.json by default, > > since 99% most people shouldn't need it. > > > > > > On Fri, Jan 3, 2014 at 2:31 PM, Brian LeRoux wrote: > > > > > actually, let me put this another way: I support .cordova/config.json > -> > > > cordova.json but I am not really interested in changing the name of > > > ./www/config.xml to ./www/app.xml > > > > > > ...feels to me we could consolidate this entire sitation with a single > > well > > > crafted configuration file (at the top level). ideally we have more > > > convention than configuration. feels like we have too many footguns to > > ease > > > our personal dev workflows as is than consideration for people actually > > > building apps. > > > > > > > > > On Fri, Jan 3, 2014 at 11:25 AM, Brian LeRoux wrote: > > > > > > > Sorry, I completely do not understand this at all. The proposal is to > > > > change the name of config.xml to ease confusions and add a new top > > level > > > > config file? > > > > > > > > > > > > On Fri, Jan 3, 2014 at 11:15 AM, Andrew Grieve > > >wrote: > > > > > > > >> Just spoke with Ian and I now understand his point about > cordova.json > > > >> being > > > >> for build environment, whereas config.xml is for application things. > > > >> > > > >> So, do think it'd be bad to have a cordova.json and a config.xml > right > > > >> next > > > >> to each other. > > > >> > > > >> How about: > > > >> > > > >> config.xml -> app.xml > > > >> - This will (hopefully) ease confusion about CLI's config.xml vs. > > > >> platforms/ config.xml files. > > > >> - E.g. we're adding icon & splashscreen support to CLI's > config.xml, > > > but > > > >> not for non-CLI config.xml files > > > >> - E.g. app.xml and plugin.xml is where you make edits, config.xml > is > > > >> what's read at runtime. > > > >> > > > >> .cordova/config.json -> cordova.json > > > >> > > > >> Also - JIRA for this is > https://issues.apache.org/jira/browse/CB-4910 > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> On Thu, Jan 2, 2014 at 4:10 PM, Brian LeRoux wrote: > > > >> > > > >> > I understood and read it too Gorkem. > > > >> > > > > >> > I was (poorly) suggesting we look at the issue of configuration > in a > > > >> > complete view. Due to backwards compatibility we will be adding a > > new > > > >> file > > > >> > and the code to support the old file will be around a while. > > > >> > > > > >> > We can probably roll a whole lot more into a single file. What I"m > > not > > > >> sure > > > >> > about is what should and should not be. > > > >> > > > > >> > > > > >> > On Thu, Jan 2, 2014 at 12:31 PM, Gorkem Ercan < > > gorkem.ercan@gmail.com > > > >> > >wrote: > > > >> > > > > >> > > > > > >> > > Reducing the number of configuration files is actually the goal > > > here. > > > >> > > > > > >> > > The abstraction is not a new one. It already exists and it is > part > > > of > > > >> the > > > >> > > $PROJECT/.cordova/config.json. > > > >> > > I am suggesting to move it to $HOME/.cordova/config.json so that > > we > > > no > > > >> > > longer need the > > > >> > > $PROJECT/.cordova/config.json and have only the cordova.xml to > > carry > > > >> > > project specific > > > >> > > properties. > > > >> > > -- > > > >> > > Gorkem > > > >> > > > > > >> > > > > > >> > > On Thu, Jan 02, 2014 at 12:16:57PM -0800, Brian LeRoux wrote: > > > >> > > > Considering > http://wiki.apache.org/cordova/ConfigurationFilesI'm > > > >> not > > > >> > > sure > > > >> > > > we want more config either. > > > >> > > > > > > >> > > > Perhaps we need to think more comprehensively rather than > > > proposing > > > >> > more > > > >> > > > abstractions. > > > >> > > > > > > >> > > > > > > >> > > > On Thu, Jan 2, 2014 at 11:15 AM, Gorkem Ercan < > > > >> gorkem.ercan@gmail.com > > > >> > > >wrote: > > > >> > > > > > > >> > > > > > > > >> > > > > I think what I will describe here is more that what CLI > > provides > > > >> > today. > > > >> > > > > > > > >> > > > > An engine/lib has a version, id and a uri. On most cases, > you > > > only > > > >> > care > > > >> > > > > about the > > > >> > > > > id and uri and assume that the tools that you work with > > already > > > >> knows > > > >> > > how > > > >> > > > > to > > > >> > > > > resolve the id and version to a location. In the case of CLI > > an > > > >> > engine > > > >> > > > > with id: cordova > > > >> > > > > and version:3.1.0 should be resolved to > > > >> > > ~/.cordova/lib/ios/cordova/3.1.0 . > > > >> > > > > If we have a > > > >> > > > > uri defined that actually means we want to overwrite the > > default > > > >> > > location > > > >> > > > > for the engine. > > > >> > > > > I think this redirection should be per engine not per > project > > > and > > > >> > > should > > > >> > > > > be located as part of > > > >> > > > > CLI's configuration > > > >> > > > > -- > > > >> > > > > Gorkem > > > >> > > > > > > > >> > > > > On Thu, Jan 02, 2014 at 01:28:12PM -0500, Andrew Grieve > wrote: > > > >> > > > > > Hmm, good point about absolute paths. > > > >> > > > > > > > > >> > > > > > I think if you're using an override there though, that you > > > could > > > >> > set > > > >> > > it > > > >> > > > > to > > > >> > > > > > a relative path for shared projects. Same thing with > plugin > > > >> search > > > >> > > paths. > > > >> > > > > > > > > >> > > > > > I think it'll be confusing to have a "cordova.xml" as well > > as > > > a > > > >> > > > > > "cordova.json" file right in the root. > > > >> > > > > > > > > >> > > > > > WDYT? Other options? > > > >> > > > > > > > > >> > > > > > > > > >> > > > > > On Thu, Jan 2, 2014 at 1:06 PM, Ian Clelland < > > > >> > iclelland@chromium.org > > > >> > > > > > > >> > > > > wrote: > > > >> > > > > > > > > >> > > > > > > On Thu, Jan 2, 2014 at 10:22 AM, Andrew Grieve < > > > >> > > agrieve@chromium.org> > > > >> > > > > > > wrote: > > > >> > > > > > > > > > >> > > > > > > > What cordova.json has that config.xml doesn't, is that > > you > > > >> can > > > >> > > set > > > >> > > > > the > > > >> > > > > > > > location of platforms with it through: > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > That said, I like your idea of having one top-level > > config > > > >> file > > > >> > > > > instead > > > >> > > > > > > of > > > >> > > > > > > > two. I don't see why we couldn't just put these same > > > >> settings > > > >> > > into a > > > >> > > > > > > > "cordova.xml". > > > >> > > > > > > > > > > >> > > > > > > > > > >> > > > > > > Wouldn't this make it impossible to share project > > > >> configuration > > > >> > > between > > > >> > > > > > > developers? If your /Users/agrieve/.../ paths are in > your > > > >> config > > > >> > > xml, > > > >> > > > > > > you're going to have a bad time putting that in version > > > >> control. > > > >> > > > > > > > > > >> > > > > > > -1 on having a single file to manage both application > > config > > > >> and > > > >> > > > > > > build-environment config. > > > >> > > > > > > > > > >> > > > > > > +1 to the way I read Gorkem's original suggestion, which > > was > > > >> to > > > >> > > > > coordinate > > > >> > > > > > > the move of the two files into a single issue and take > > care > > > >> of it > > > >> > > all > > > >> > > > > at > > > >> > > > > > > once. > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > On Wed, Jan 1, 2014 at 5:05 PM, Gorkem Ercan < > > > >> > > gorkem.ercan@gmail.com > > > >> > > > > > > > > >> > > > > > > > wrote: > > > >> > > > > > > > > > > >> > > > > > > > > There is also another proposal to move config.xml > out > > of > > > >> www. > > > >> > > Can > > > >> > > > > we > > > >> > > > > > > > merge > > > >> > > > > > > > > this two moves and > > > >> > > > > > > > > 1. remove .cordova > > > >> > > > > > > > > 2. remove config.json > > > >> > > > > > > > > 3. move config.xml to root > > > >> > > > > > > > > 4. rename config.xml to cordova.xml > > > >> > > > > > > > > > > > >> > > > > > > > > AFAIK config,json does not carry any information > that > > is > > > >> not > > > >> > > > > already > > > >> > > > > > > > > available on the config.xml. Since .cordova is > > > basically a > > > >> > > marker > > > >> > > > > for > > > >> > > > > > > CLI > > > >> > > > > > > > > for the root of an app I think renaming config.xml > > > should > > > >> > > provide > > > >> > > > > the > > > >> > > > > > > > same > > > >> > > > > > > > > functionality. > > > >> > > > > > > > > -- > > > >> > > > > > > > > Gorkem > > > >> > > > > > > > > > > > >> > > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > >> > > > > > > > >> > > > > > >> > > > > >> > > > > > > > > > > > > > > --047d7b873810257f0204ef52b207--