You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Xandor Schiefer (JIRA)" <ji...@apache.org> on 2015/09/22 13:14:04 UTC

[jira] [Created] (CB-9686) Adding Android platform puts folders in wrong place

Xandor Schiefer created CB-9686:
-----------------------------------

             Summary: Adding Android platform puts folders in wrong place
                 Key: CB-9686
                 URL: https://issues.apache.org/jira/browse/CB-9686
             Project: Apache Cordova
          Issue Type: Bug
          Components: CLI
         Environment: Debian 8 "Jessie" Stable
Node v4.1.0
Npm v3.3.3
Cordova 5.1.1, 5.3.1 & 5.3.2-dev (I tried different versions)
            Reporter: Xandor Schiefer


When I run `cordova platform add android`, it adds the platform and plugins folders to the current directory's parent, i.e. it creates `../platforms` and `../plugins` instead of `./platforms` and `./plugins`.

It also doesn't seem to edit the config.xml file whether I run it with the `--save` flag or without.

The cordova project folder is in a subdirectory of the git repo's root folder:
{quote}
.
├── app
├── bower_components
├── bower.json
├── cordova
├── Gruntfile.js
├── node_modules
├── package.json
└── www
{quote}

When I run `cordova platform add android` whilst my working directory is the `cordova` folder, the repo root looks like this:

{quote}
.
├── app
├── bower_components
├── bower.json
├── cordova
├── Gruntfile.js
├── node_modules
├── package.json
├── platforms
├── plugins
└── www
{quote}

When I did this on OS X (in that case `cordova platform add ios`), the folders were created as expected (i.e. in the `cordova` folder, not the repo root). Cordova version 5.3.1, Node version 4.1.0 and Npm version 3.3.3 on OS X 10.10.5.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org