Filip Maj created CB-4184:
-----------------------------

             Summary: Adding plugin with remote dependencies to a cli project 
with multiple platforms yields warnings
                 Key: CB-4184
                 URL: https://issues.apache.org/jira/browse/CB-4184
             Project: Apache Cordova
          Issue Type: Bug
          Components: CLI
    Affects Versions: 2.9.0
            Reporter: Filip Maj
            Assignee: Filip Maj
            Priority: Minor


Set up:

{noformat}
$ cordova create tmp
$ cd tmp
$ cordova platform add ios android
{noformat}

Then go to add a plugin with a remote dependency.

What will happen is, in parallel, cordova-cli will invoke {{plugin.install}}, 
which in turn will invoke {{plugman.fetch}}, but it does so for each platform. 
So in parallel, plugman is attempting to fetch the same plugin twice and fetch 
it into the cli-generated project's plugins directory.

This does not cause errors but there are a bunch of warning messages about 
files already existing.

Perhaps we can make the cli aware of what's happening in this case and manually 
call {{fetch}} first, and only once, before invoking install for each platform.

--
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

Reply via email to