[
https://issues.apache.org/jira/browse/CB-7678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcel Kinard resolved CB-7678.
-------------------------------
Resolution: Duplicate
> dependent plugins attempt to install again, revert wipes out all
> previously-installed plugins
> ---------------------------------------------------------------------------------------------
>
> Key: CB-7678
> URL: https://issues.apache.org/jira/browse/CB-7678
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaLib
> Reporter: Marcel Kinard
> Priority: Minor
>
> This may be higher priority than Minor.
> I have npm-link'ed cordova-lib into cordova-plugman and cordova-cli and am
> running createmobilespec.js. I am using master of all repos. When I run
> createmobilespec, it attempts to install the File plugin twice, probably as a
> dependency to FileTransfer. Upon that 2nd install attempt, it recognizes a
> problem and tries to revert.
> {code}
> ...
> Adding plugins using CLI...
> Searchpath: --searchpath /Users/marcelk/Developer/apache/
> Installing local test framework plugins...
> Installing "org.apache.cordova.test.whitelist" for android
> Installing "org.apache.cordova.test.echo" for android
> Installing "org.apache.cordova.test-framework" for android
> Installing "org.cordova.mobile-spec-dependencies" for android
> Installing "org.apache.cordova.battery-status" for android
> Installing "org.apache.cordova.camera" for android
> Installing "org.apache.cordova.console" for android
> Installing "org.apache.cordova.contacts" for android
> Installing "org.apache.cordova.device" for android
> Installing "org.apache.cordova.device-motion" for android
> Installing "org.apache.cordova.device-orientation" for android
> Installing "org.apache.cordova.dialogs" for android
> Installing "org.apache.cordova.file" for android
> Installing "org.apache.cordova.file-transfer" for android
> Installing "org.apache.cordova.file" for android
> Error during processing of action! Attempting to revert...
> Installing "org.apache.cordova.geolocation" for android
> {code}
> When I try to run the generated mobilespec project, I am getting exceptions
> regarding missing classes. And indeed the native parts of classes are missing:
> {code}
> $ ls mobilespec/platforms/android/src/org/apache/cordova
> file media statusbar
> filetransfer mediacapture test
> globalization networkinformation vibration
> inappbrowser splashscreen
> $
> {code}
> All the plugins which were installed prior to FIle are now gone. It looks
> like the revert is being too aggressive and deleting all previously-installed
> plugins.
> If I don't npm-link cordova-lib and just let it download the latest published
> one from the npm registry as defined in cordova-plugman's package.json,
> neither of these problems exist. Methinks that a problem has been introduced
> in cordova-lib since the last tools release.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)