cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Braden Shepherdson <bra...@chromium.org>
Subject Re: config.xml discussion, we need to talk
Date Wed, 25 Sep 2013 20:24:48 GMT
I'm in favour of CLI (platform parsers, probably) deleting this
www/config.xml that they don't use. It's a waste of space and has confused
people in the past.

It even confused the iOS prepare code and caused that odd "my project
doesn't work if it starts with x, y or z" bug (because xFactor/config.xml
sorts after www/config.xml, and it was blindly taking the first one).

Braden


On Wed, Sep 25, 2013 at 4:22 PM, Bryan Higgins <bhiggins@blackberry.com>wrote:

> Thanks for the clarification. BlackBerry happened to luck out because we
> expect config.xml in www.
>
> Perhaps copying of config.xml should become a responsibility of the
> platform parsers.
>
> I can understand moving config.xml to root or cordova for the reason stated
> in the JIRA, but my vote would be to keep it "config.xml" rather than
> "app.xml".
>
>
> On Wed, Sep 25, 2013 at 3:55 PM, Jesse <purplecabbage@gmail.com> wrote:
>
> > I am not saying deviate, I am saying, what is it supposed to be? If you
> > look at the various platforms you will see it is all over the map.
> >
> > Looking at Android code, and talking to Joe, the only location that the
> > config.xml file is loaded from is in res/xml, and the fact that
> cordova-cli
> > creates another one sitting in the www folder is just irrelevant
> > sloppiness.
> >
> > It may make sense for the config.xml file to sit in the root/www folder
> of
> > the CLI project, but in reality at runtime, it's location will vary by
> > platform.
> >
> >
> >
> > @purplecabbage
> > risingj.com
> >
> >
> > On Wed, Sep 25, 2013 at 12:29 PM, Bryan Higgins <bhiggins@blackberry.com
> > >wrote:
> >
> > > www/config.xml aligns nicely with the w3c widget spec [1]. Why would we
> > > want to deviate?
> > >
> > > [1] http://www.w3.org/TR/widgets/#reserved-file-and-folder-names
> > >
> > >
> > > On Wed, Sep 25, 2013 at 3:23 PM, Jesse <purplecabbage@gmail.com>
> wrote:
> > >
> > > > Seems any project created with the CLI has a config.xml in the www
> > > folder.
> > > > [1]
> > > > Why do we have 2 of these?
> > > >
> > > > I also recently closed a defect created by Carlos, stating that WP8
> did
> > > NOT
> > > > have it's config.xml in the www folder. [2] Now I am not sure I
> should
> > > have
> > > > called this invalid, however, after creating a new WP8 project with
> the
> > > > CLI, I see a config.xml in the www folder AND one in the app root.
> wtf?
> > > >
> > > > There is an open issue [3] to re-org config files, where Braden
> states
> > > "We
> > > > already have plans to move $PROJECT/www/config.xml to
> $PROJECT/app.xml,
> > > > which more or less addresses ..."    Have we formalized what exactly
> > this
> > > > is?
> > > >
> > > > Seems we still have a lot of discussion that has to happen before we
> > can
> > > > move ahead on these items.  I am currently adding config.xml support
> to
> > > > Windows 8, and was hoping to have a nice clear path of what to do,
> but
> > it
> > > > still looks pretty muddy. [4]
> > > >
> > > >
> > > > [1] https://issues.apache.org/jira/browse/CB-4476
> > > > [2] https://issues.apache.org/jira/browse/CB-46<
> > > > https://issues.apache.org/jira/browse/CB-4658>
> > > > 58 <https://issues.apache.org/jira/browse/CB-4658>
> > > > [3] https://issues.apache.org/jira/browse/CB-4910
> > > > [4] https://issues.apache.org/jira/browse/CB-4608
> > > >
> > > > @purplecabbage
> > > > risingj.com
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message