This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 234011 - Clean action should remove plugins and android.json
Summary: Clean action should remove plugins and android.json
Status: RESOLVED WONTFIX
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks: 233214
  Show dependency tree
 
Reported: 2013-08-06 10:51 UTC by Vladimir Riha
Modified: 2013-08-23 08:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
output window (19.76 KB, text/plain)
2013-08-06 10:51 UTC, Vladimir Riha
Details
IDE log (124.01 KB, text/x-log)
2013-08-06 10:51 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-08-06 10:51:10 UTC
Created attachment 138346 [details]
output window

Please try:
- create a new HTML5 Cordova application
- build it
- open plugins.properties
- remove all plugins but 

org.apache.cordova.core.device=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git

- in project node in Projects, invoke either Clean or Clean & Build

=> action fails (output window content attached). It looks like it is necessary to remove "all" plugins' folders in [project]/plugins and also file [project]/plugins/android.json. However on Clean&Build action, file android.json does not seem to be correctly re-created, as it contains only

{"prepare_queue":{"installed":[],"uninstalled":[]},"config_munge":{},"installed_plugins":{},"dependent_plugins":{}}

But if you configure new project to contain only this one plugin prior first run/build, android.json looks like


{"prepare_queue":{"installed":[],"uninstalled":[]},"config_munge":{"res/xml/config.xml":{"/*":{"<feature name=\"Device\"><param name=\"android-package\" value=\"org.apache.cordova.core.Device\" /></feature>":1}}},"installed_plugins":{"org.apache.cordova.core.device":{"PACKAGE_NAME":"com.coolappz.HTML5Application5"}},"dependent_plugins":{}}



Product Version: NetBeans IDE Dev (Build Cordova 3.0 Support-14-on-20130806)
Java: 1.7.0_40-ea; Java HotSpot(TM) Client VM 24.0-b52
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b33
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-08-06 10:51:28 UTC
Created attachment 138347 [details]
IDE log
Comment 2 Vladimir Riha 2013-08-06 11:11:18 UTC
Removing plugins using Cordova CLI does update android.json properly and also removes plugin's folder, e.g.

cordova plugin rm org.apache.cordova.core.console
Comment 3 Jan Becicka 2013-08-06 13:24:46 UTC
our build script just calls Cordova CLI and does cordova plugin rm
It looks like bug in cordova 
https://issues.apache.org/jira/browse/CB-4433
Comment 4 Jan Becicka 2013-08-23 08:06:49 UTC
should be fixed in cordova