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

plugman miss the last file/folder when installing plugin on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 6.3.1
    • None
    • cordova-lib
    • Windows
      plugman --version
      1.2.1
      cordova --version
      6.3.1

    Description

      Steps to reproduce:

      • Create simple plugin
        $ plugman create --name SimplePlugin --plugin_id org.simple.plugin --plugin_version 1.0.0
      • Create cordova project it includes the name of plugin
        $ cordova create SimplePlugin_TestBed
      • Install the plugin into the created project
        $ cordova plugin add ../SimplePlugin

      -> Check the plugins/org.simple.plugin folder
      Find www/ folder is missing.

      The reason is filenames.indexOf(relativeRootFolder) returns -1 when the target folder name cannot find in the plugin folder.

      The original code works good when the project is on the child folder.
      [plugin]/[project of plugin_testbed]

      But does not the project as sibling.
      [plugin]
      [project of plugin_testbed]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yseki Yasuharu Seki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: