Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10710

--www ignored in plugman 1.1.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.0
    • None
    • cordova-plugman
    • Mac OS 10.11.3

    Description

      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:

      /myproject
          /android (android Cordova project)
          /www
              index.html
              /cordova
                  /android
      

      Here's what happened when I removed and re-installed a plugin:

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

      The files in www weren't touched.

      Attachments

        Issue Links

          Activity

            People

              vladimir.kotikov Vladimir Kotikov
              jweber Jacob Weber
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: