Hi Puneet, Make sure that you are running the right copy of cordova-cl and that it imports the right copy of cordova-lib (the one you edit, and not some other copy say under cordova-cli/node_modules/). "npm link" might be helpful.
Make sure you are running the latest versions (master branch from github). The places where platform names are mentioned (at least the ones I remember) are: - src/cordova/platforms.js - src/cordova/metadata/platform_name_parser.js - src/plugman/platforms.js - scr/plugman/platforms/platform_name.js Try running cordova with -d switch (debug mode) it will print out full stack trace pointing you at the right place in code. On Wed, Jun 11, 2014 at 9:57 AM, Puneet Kaur <[email protected]> wrote: > ok so in my local directory , where I have cloned > https://github.com/apache/cordova-lib I added a new platform in > platforms.js and also followed the steps mentioned on > https://github.com/apache/cordova-lib#setup but my changes dont reflect > on cordova command line .. > > am I missing something ? > > > On Wed, Jun 11, 2014 at 6:16 PM, Ian Clelland <[email protected]> > wrote: > >> Yep, you can see in the code for platform.js (same directory) that it >> requires 'platforms', and uses the keys from that object as the list of >> available platforms. >> >> >> On Wed, Jun 11, 2014 at 12:29 AM, Puneet Kaur <[email protected]> >> wrote: >> >> > from where does "cordova platform add <platform name>" command fetch >> the >> > platform's list ? >> > >> > is it from >> > >> > >> https://github.com/puneetgkaur/cordova-lib/blob/master/cordova-lib/src/cordova/platforms.js >> > ? >> > >> > >
