cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Kraus (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-4284) cordova build [PLATFORM] does not consume www/config.xml
Date Thu, 18 Jul 2013 22:08:50 GMT

    [ https://issues.apache.org/jira/browse/CB-4284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13712952#comment-13712952
] 

Carsten Kraus commented on CB-4284:
-----------------------------------

> so you cannot expect the exact contents of the config.xml from www/ to be copied over
to the platform-specific locations

Maybe not the exact contents, but the relevant - might be out of scope of this ticket(really?),
but it would make sense for some properties to actually get copied, and copied to the actual
build dirs, as well.
As per the docs: http://docs.phonegap.com/en/2.9.0/guide_project-settings_index.md.html#Project%20Settings

My example from above is such a case, imho - if for whatever reason the start page of your
app is not www/index.html, this should be configurable in /www/config.xml

An example:
{{<content src="other.html" />}} in www/config.xml 
will get copied over correctly to /platforms/ios/www/config.xml, but still render 
{{<content src="index.html" />}} in /platforms/ios/YourApp/config.xml
after running {{cordova build}}.

Maybe a related issue is shown in Jansons gist.
The default {{<preference name="webviewbounce" value="true" />}}, which will be created
in /www/config.xml after running {{cordova create ...}}.
If you look at Jansons gist, you will find the node
{{<preference name="UIWebViewBounce" value="true" />}}
although there also is the following(which I assume Janson has changed in www/config.xml before
building):
{{<preference name="webviewbounce" value="false" />}}

These 2 nodes obviously point to the same setting, but are not synchronized.


                
> cordova build [PLATFORM] does not consume www/config.xml
> --------------------------------------------------------
>
>                 Key: CB-4284
>                 URL: https://issues.apache.org/jira/browse/CB-4284
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.0.0
>         Environment: ├─┬ cordova@3.0.0-rc1-1
> │ ├── colors@0.6.0
> │ ├─┬ elementtree@0.1.3
> │ │ └── sax@0.3.5
> │ ├─┬ express@3.0.0
> │ │ ├── commander@0.6.1
> │ │ ├─┬ connect@2.6.0
> │ │ │ ├── bytes@0.1.0
> │ │ │ ├── formidable@1.0.11
> │ │ │ ├── pause@0.0.1
> │ │ │ ├── qs@0.5.1
> │ │ │ └─┬ send@0.0.4
> │ │ │   └── mime@1.2.6
> │ │ ├── cookie@0.0.4
> │ │ ├── crc@0.2.0
> │ │ ├── debug@0.7.2
> │ │ ├── fresh@0.1.0
> │ │ ├── methods@0.0.1
> │ │ ├── mkdirp@0.3.3
> │ │ ├── range-parser@0.0.4
> │ │ └─┬ send@0.1.0
> │ │   └── mime@1.2.6
> │ ├─┬ follow-redirects@0.0.3
> │ │ └── underscore@1.5.1
> │ ├─┬ glob@3.2.3
> │ │ ├── graceful-fs@2.0.0
> │ │ ├── inherits@2.0.0
> │ │ └─┬ minimatch@0.2.12
> │ │   ├── lru-cache@2.3.0
> │ │   └── sigmund@1.0.0
> │ ├── ncallbacks@1.0.0
> │ ├── open@0.0.3
> │ ├─┬ plist@0.4.3
> │ │ ├── xmlbuilder@0.4.2
> │ │ └── xmldom@0.1.16
> │ ├─┬ plugman@0.9.8
> │ │ ├── bplist-parser@0.0.4
> │ │ ├─┬ dep-graph@1.1.0
> │ │ │ └── underscore@1.2.1
> │ │ ├── ncallbacks@1.1.0
> │ │ ├─┬ nopt@1.0.10
> │ │ │ └── abbrev@1.0.4
> │ │ ├── osenv@0.0.3
> │ │ ├── semver@2.0.10
> │ │ ├── underscore@1.4.4
> │ │ └─┬ xcode@0.6.1
> │ │   ├── node-uuid@1.3.3
> │ │   └── pegjs@0.6.2
> │ ├─┬ prompt@0.2.7
> │ │ ├── pkginfo@0.3.0
> │ │ ├─┬ read@1.0.5
> │ │ │ └── mute-stream@0.0.4
> │ │ ├── revalidator@0.1.5
> │ │ ├─┬ utile@0.1.7
> │ │ │ ├── async@0.1.22
> │ │ │ ├── deep-equal@0.0.0
> │ │ │ ├── i@0.3.1
> │ │ │ ├── mkdirp@0.3.5
> │ │ │ ├── ncp@0.2.7
> │ │ │ └── rimraf@1.0.9
> │ │ └─┬ winston@0.6.2
> │ │   ├── async@0.1.22
> │ │   ├── cycle@1.0.2
> │ │   ├── eyes@0.1.8
> │ │   ├── pkginfo@0.2.3
> │ │   ├── request@2.9.203
> │ │   └── stack-trace@0.0.6
> │ ├─┬ request@2.22.0
> │ │ ├── aws-sign@0.3.0
> │ │ ├── cookie-jar@0.3.0
> │ │ ├── forever-agent@0.5.0
> │ │ ├─┬ form-data@0.0.8
> │ │ │ ├── async@0.2.9
> │ │ │ └─┬ combined-stream@0.0.4
> │ │ │   └── delayed-stream@0.0.5
> │ │ ├─┬ hawk@0.13.1
> │ │ │ ├─┬ boom@0.4.2
> │ │ │ │ └── hoek@0.9.1
> │ │ │ ├── cryptiles@0.2.2
> │ │ │ ├── hoek@0.8.5
> │ │ │ └─┬ sntp@0.2.4
> │ │ │   └── hoek@0.9.1
> │ │ ├─┬ http-signature@0.10.0
> │ │ │ ├── asn1@0.1.11
> │ │ │ ├── assert-plus@0.1.2
> │ │ │ └── ctype@0.5.2
> │ │ ├── json-stringify-safe@4.0.0
> │ │ ├── mime@1.2.9
> │ │ ├── node-uuid@1.4.0
> │ │ ├── oauth-sign@0.3.0
> │ │ ├── qs@0.6.5
> │ │ └── tunnel-agent@0.3.0
> │ ├─┬ ripple-emulator@0.9.18
> │ │ ├── accounting@0.3.2
> │ │ ├── colors@0.6.0-1
> │ │ ├── connect-xcors@0.5.2
> │ │ ├─┬ express@3.1.0
> │ │ │ ├── buffer-crc32@0.1.1
> │ │ │ ├── commander@0.6.1
> │ │ │ ├─┬ connect@2.7.2
> │ │ │ │ ├── bytes@0.1.0
> │ │ │ │ ├── formidable@1.0.11
> │ │ │ │ ├── pause@0.0.1
> │ │ │ │ └── qs@0.5.1
> │ │ │ ├── cookie@0.0.5
> │ │ │ ├── cookie-signature@0.0.1
> │ │ │ ├── debug@0.7.2
> │ │ │ ├── fresh@0.1.0
> │ │ │ ├── methods@0.0.1
> │ │ │ ├── mkdirp@0.3.3
> │ │ │ ├── range-parser@0.0.4
> │ │ │ └─┬ send@0.1.0
> │ │ │   └── mime@1.2.6
> │ │ ├── moment@1.7.2
> │ │ └─┬ request@2.12.0
> │ │   ├─┬ form-data@0.0.3
> │ │   │ ├── async@0.1.9
> │ │   │ └─┬ combined-stream@0.0.3
> │ │   │   └── delayed-stream@0.0.5
> │ │   └── mime@1.2.7
> │ ├── semver@1.1.0
> │ ├── shelljs@0.1.2
> │ ├─┬ tar@0.1.17
> │ │ ├── block-stream@0.0.6
> │ │ ├─┬ fstream@0.1.23
> │ │ │ ├── graceful-fs@2.0.0
> │ │ │ ├── mkdirp@0.3.5
> │ │ │ └─┬ rimraf@2.2.1
> │ │ │   └── graceful-fs@1.2.3
> │ │ └── inherits@1.0.0
> │ └─┬ xcode@0.5.1
> │   ├── node-uuid@1.3.3
> │   └── pegjs@0.6.2
>            Reporter: Janson Hartliep
>            Assignee: Filip Maj
>              Labels: config, documentation, newbie
>
> The larger question is *how* to use config.xml, given a huge disconnect between cordova
and phonegap as well as changing config.xml on each point version. 
> Possible documentation sources which all differ?!
> * https://github.com/phonegap/phonegap-start/blob/master/www/config.xml
> * https://github.com/apache/cordova-cli/blob/master/templates/config.xml
> * https://build.phonegap.com/docs/config-xml
> Steps to Reproduce:
> * create a project with cordova-cli
> * change www/config.xml
> * add a platform
> * build the platform
> Result: platform specific config.xml only sort of but not really uses any values from
www/config.xml
> I will attach what I'm trying to do, but even simple things like the name and description
don't get compiled!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message