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 251600

Summary: Cordova plugins are removed after build
Product: web Reporter: tigerwil
Component: CordovaAssignee: Roman Svitanic <rsvitanic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: 8.0.2   
Hardware: PC   
OS: Windows 8 x64   
Issue Type: DEFECT Exception Reporter:

Description tigerwil 2015-04-02 19:13:30 UTC
Plugins are removed from project after subsequent builds.  Cordova version is 4.2.0 and android version is 3.7.1

Adding plugins using NetBeans project properties within IDE or using the plugin.properties file only works on the first build.  Plugins are added like this:

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

The settings are kept in either location, but after building they are not included in the assets or in the cordova_plugins.js file.

My NetBeans info is the following:
Product Version: NetBeans IDE 8.0.2 (Build 201408251540)
Updates: Updates available to version NetBeans 8.0.2 Patch 1
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows 8 version 6.2 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\mwilliams\AppData\Roaming\NetBeans\8.0
Cache directory: C:\Users\mwilliams\AppData\Local\NetBeans\Cache\8.0

Also the following updates are never applied:
IDE Platform     
	Bootstrap [2.69.1 -> 2.69.3]     
	Startup [1.55.1 -> 1.55.2] 
TestNG    
 Upgrade [4.31.1 -> 4.31.2]
Comment 1 Vladimir Riha 2015-04-02 20:42:17 UTC
You need to use plugin I'd in the plugins.properties file. Please have a look at issue 250950 for more information. Thank you

*** This bug has been marked as a duplicate of bug 250950 ***
Comment 2 Vladimir Riha 2015-04-02 20:50:50 UTC
(In reply to Vladimir Riha from comment #1)
> You need to use plugin I'd in the plugins.properties file. Please have a
> look at issue 250950 for more information. Thank you
> 
> *** This bug has been marked as a duplicate of bug 250950 ***

* Plugin ID, not I'd :-)
Comment 3 Vladimir Riha 2015-04-03 07:54:22 UTC
OK, the problem is I think the same, wrong plugin ID but it also looks like the core plugins available for selection in NetBeans have wrong IDs, e.g. NetBeans inserts 

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


and looking at https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-device.git;a=blob_plain;f=plugin.xml;hb=HEAD

there is ID cordova-plugin-device so IDE's "org.apache.cordova.device" seems to be wrong.

Romane, I haven't checked other plugins the I'd guess they are wrong as well.
Comment 4 Roman Svitanic 2015-04-03 08:03:02 UTC
It seems that 2 days ago they have changed the IDs of the plugins:
e.g.: https://github.com/apache/cordova-plugin-device/commit/b58b5edd401359845b6b0539c0d0cccb996e5719
Comment 5 Roman Svitanic 2015-04-03 09:17:18 UTC
Changeset: 1224071a5747
Author:    Roman Svitanic <rsvitanic@netbeans.org>
Date:      2015-04-03 11:16
Message:   #251600: Cordova plugins are removed after build - fixed
Comment 6 Quality Engineering 2015-04-04 05:16:22 UTC
Integrated into 'main-silver', will be available in build *201504040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1224071a5747
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: #251600: Cordova plugins are removed after build - fixed
Task #251600 - Cordova plugins are removed after build