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

Robert Weiser edited comment on CB-13801 at 6/27/18 12:59 PM:
--------------------------------------------------------------

The following workaround works (confirmed for Windows):
 * Adapt your _package.json_ to copy the local plugin to the _plugins_ folder 
when building the project
 * Delete your _plugins_ folder
 * When the _plugins_ folder is re-created by the tooling and your plugin has 
been copied there beforehand it should be linked in the _plugins/<os>.json_ file

...I can only confirm this for windows.


was (Author: death-knight):
The following workaround works (confirmed for Windows):
 * Adapt your _package.json_ to copy the local plugin to the _plugins_ folder 
when building the project
 * Delete your _plugins_ folder
 * When the _plugins_ folder is populated re-created by the tooling and your 
plugin has been copied there beforehand it should be linked in the 
_plugins/<os>.json_ file

...I can only confirm this for windows.

> Fail to restore plugins with relative path
> ------------------------------------------
>
>                 Key: CB-13801
>                 URL: https://issues.apache.org/jira/browse/CB-13801
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-lib
>            Reporter: Michael Goffioul
>            Priority: Major
>
> 1. Create a cordova project
> 2. Add android platform
> 3. Add a local plugin using a relative path: {{cordova plugin add 
> myplugins/testplugin}}
> 4. Delete directories platforms/ and plugins/
> 5. Prepare android: {{cordova prepare android}}
> Cordova will fail to restore the local plugin. The plugin has been added to 
> {{package.json}} using the spec {{file:myplugins/testplugin}} and the 
> restoration utility is unable to handle such URL. Note that {{config.xml}} 
> contains the spec {{myplugins/testplugin}} (that is, without the file: 
> scheme), but the one in {{package.json}} takes precedence.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to