[
https://issues.apache.org/jira/browse/CB-10710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15174364#comment-15174364
]
Jacob Weber commented on CB-10710:
----------------------------------
My case is a little strange. First, I'm not using the Cordova CLI; I'm using
the platform-centric workflow. Second, I'm storing the www files in source
control under /myproject/www/, and then I have a script that copies them to the
Cordova Android project location (/myproject/android/assets/www/) before it's
built.
So before upgrading Plugman, I had been using the ---www argument to have it
store the plugin JavaScript code in /myproject/www/. Now that argument seems to
be ignored.
It's not a huge problem, since I can just copy the files from where Plugman
puts them. But I thought that's what the --www argument was for.
> --www ignored in plugman 1.1.0
> ------------------------------
>
> Key: CB-10710
> URL: https://issues.apache.org/jira/browse/CB-10710
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugman
> Affects Versions: 1.1.0
> Environment: Mac OS 10.11.3
> Reporter: Jacob Weber
> Assignee: Vladimir Kotikov
> Labels: triaged
>
> I recently upgraded to Plugman 1.1.0 from a previous version (not sure which).
> It seems like the --www argument is now ignored when installing/removing a
> plugin, even though it's still documented (and still useful).
> Instead, it's always using the default location (e.g.
> android/assets/www/plugins).
> For example, my project is structured like this:
> {code}
> /myproject
> /android (android Cordova project)
> /www
> index.html
> /cordova
> /android
> {code}
> Here's what happened when I removed and re-installed a plugin:
> {code}
> $ cd /myproject
> $ plugman -d uninstall --platform android --project android --plugin
> "cordova-plugin-statusbar" --www www/cordova/android/
> Running command: /myproject/android/cordova/version
> Command finished with error code 0: /myproject/android/cordova/version
> Executing "before_plugin_uninstall" hook for "cordova-plugin-statusbar" on
> android.
> Uninstalling cordova-plugin-statusbar from android
> Beginning processing of action stack for android project...
> Action stack processing complete.
> Removing "cordova-plugin-statusbar"
> Deleted "cordova-plugin-statusbar"
> $ plugman -d install --platform android --project android --plugin
> "cordova-plugin-statusbar" --www www/cordova/android/
> Fetching plugin "cordova-plugin-statusbar" via npm
> Copying plugin "/home/.npm/cordova-plugin-statusbar/2.1.1/package" =>
> "/myproject/android/cordova/plugins/cordova-plugin-statusbar"
> Installing "cordova-plugin-statusbar" for android
> Running command: /myproject/android/cordova/version
> Command finished with error code 0: /myproject/android/cordova/version
> Executing "before_plugin_install" hook for "cordova-plugin-statusbar" on
> android.
> Install start for "cordova-plugin-statusbar" on android.
> Beginning processing of action stack for android project...
> Action stack processing complete.
> Install complete for cordova-plugin-statusbar on android.
> Executing "after_plugin_install" hook for "cordova-plugin-statusbar" on
> android.
> {code}
> The files in www weren't touched.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]