[
https://issues.apache.org/jira/browse/CB-8993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14723945#comment-14723945
]
ASF GitHub Bot commented on CB-8993:
------------------------------------
Github user marcuspridham commented on the pull request:
https://github.com/apache/cordova-lib/pull/292#issuecomment-136482068
Thanks. I just tried these cases it appears to already work. The search
path provided with prepare passes through
https://github.com/apache/cordova-lib/blob/41765f1fd7393be1fff2b39ba7cf00b5bf6f1ef1/cordova-lib/src/cordova/plugin.js#L97
before a plugin is added so it is always processed to handle config.json and
multiple paths.
I tried these cases they all appear to work for me.
1. Restore plugins using plugin_search_path in .cordova/config.json.
2. Restore plugins using combination of plugin_search_path and cli provided
search path. One plugin located in each location.
3. Restore plugins using 2 search paths on cli. cordova prepare
--searchpath ../plugin_cache:../plugin_cache_2/
> Plugin restore ignores search path
> ----------------------------------
>
> Key: CB-8993
> URL: https://issues.apache.org/jira/browse/CB-8993
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Reporter: Marcus Pridham
> Assignee: Alexander Sorokin
> Fix For: 5.1.2
>
>
> If I run the command:
> cordova prepare --searchpath ~/cordova-plugins
> I would expect the CLI to try restore plugins in the config.xml from the
> provided searchpath. Currently this parameter is ignored.
> I can get this to work if I modify the opts variable in cli.js and add:
> searchpath : args.searchpath,
> https://github.com/apache/cordova-cli/blob/master/src/cli.js#L179
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]