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 242738 - Create Cordova Resources
Summary: Create Cordova Resources
Status: RESOLVED WORKSFORME
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 8.0
Hardware: Macintosh (x86) Mac OS X
: P1 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-10 12:02 UTC by alexb1971
Modified: 2014-03-11 09:42 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alexb1971 2014-03-10 12:02:45 UTC
Upgraded to Cordova 3.4.0-0.1.3
Using JDK-8
Using Netbeans 8 RC

Created a new HTML-5 Cordova project
Selected iOS Simulator
Created and built the project - first time displays a 'Create Cordova Resources' - 'Create Cordova Resources and rename site root to 'www' ?'
Accept this and run up the application ok.

The resources are not created, if you go to the Project -> Properties -> Cordova
The Plug-In screen has a 'Create Cordova Resources' pressing it has no effect on
creating the resources. The Application and Plug-ins tab never get displayed.

I suspect the Application tab settings are also not being copied into the build.xml (I think this has always been a problem)
Comment 1 Vladimir Riha 2014-03-10 13:35:27 UTC
Please attach IDE log (see [1]) from the moment it fails. Also IDE likely opens output window, please attach its content here. Are you able to create Cordova Application using new project wizard? (New Project -> HTML5 | Cordova Application).

It works for me with NetBeans 8.0 and Cordova 3.3.1-0.3.1 on Mac and 3.4.0-0.1.0 on Linux. I'll try to update to -0.1.3...


[1] http://wiki.netbeans.org/FaqLogMessagesFile
Comment 2 Vladimir Riha 2014-03-10 16:29:36 UTC
Works for me. I tried to:
 - create HTML5 project
 - change browser to Cordova - iOS Simulator
 - build project
 - IDE asks for "Create Cordova resources", confirmed 
 - output window is opened with output from build action
 - once completed, project structure is different, contains common cordova related files/folders
 - if I try add plugin from project properties, it is added to the plugins.properties file

I also tried to create HTML5 project and then from project properties invoke "Create Cordova resources, but the result is the same.



Cordova 3.4.0-0.1.3
Product Version: NetBeans IDE 8.0 (Build 201403070930)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb)
Comment 3 alexb1971 2014-03-11 09:25:04 UTC
I found half of the issue was me (Sorry) I was using release 8.0 Beta
When I upgraded to Release 8.0 RC it is working for the Create Cordova Resources dialog.

There seems to be a problem though around creating your own application id
in the Cordova -> Application tab (Application ID field) 
Underneath, the netbeans IDE is still using com.coolappz.<ProjectName> within the
build.xml file regardless of what is set in the Application ID field.
E.g. If Application ID is: net.myapp.MyProject cordova will build based on
com.coolappz.MyProject. 

Thanks for quick response on this it is much appreciated

Alex
Comment 4 Vladimir Riha 2014-03-11 09:42:18 UTC
Thank you for update. I've noticed the name as well today, I reported it as a new issue 242783 (it seems to be caused by some change in Cordova as with older Cordova it works OK). So closing this one as worksforme