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 217553 - Basic Cordova workflow is broken
Summary: Basic Cordova workflow is broken
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 7.3
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on: 217632 217661
Blocks:
  Show dependency tree
 
Reported: 2012-08-28 20:59 UTC by Petr Jiricka
Modified: 2012-10-19 13:44 UTC (History)
0 users

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 Petr Jiricka 2012-08-28 20:59:08 UTC
1. Install the Cordova plugin
2. Create a HTML5 application project; choose the Cordova Project template

Problem 1: While doing this, you will get exception - see bug 
Problem 2: The created project does not contain Cordova content, it's just a simple index.html
Problem 3: In project properties there is PhoneGap category, but it's empty
Problem 4: In the project's run configuration (or in the toolbar config combo box) there is no way to specify a mobile emulator or device for running.
Problem 5: Build action on the project does nothing
Comment 1 Petr Jiricka 2012-08-28 21:02:07 UTC
re Problem 1: should say see bug 217552
Comment 2 Jan Becicka 2012-08-30 14:08:00 UTC
The main problem is, that you didn't setup mobile platforms (in Tools | Options). This setup was requested also in wizard, but the SPI was removed -> so the wizard just fails an user don't have idea why. 
I filed an API request for it. See issue 217632
Comment 3 Jan Becicka 2012-08-30 14:11:10 UTC
And also project structure is different so files are copied into wrong subfolders
Comment 4 Petr Jiricka 2012-08-30 21:32:53 UTC
> that you didn't setup mobile platforms (in Tools | Options).

Of course, you are right!

> so files are copied into wrong subfolders

Yes, looks like the Cordova support uses Project Root instead of Site Root for many things.

So disregard problems 1-5 above, they are not really valid - I was able to deploy the app to an android device. However, when building for iPhone Simulator, I am getting bug 217650. I have Xcode 4.4.1. The simulator is installed under /Applications/Xcode.app/Contents/Applications/iPhone Simulator.app.
Comment 5 Jan Becicka 2012-10-18 13:27:21 UTC
236427:f8310bc15a21
Comment 6 Quality Engineering 2012-10-19 13:44:15 UTC
Integrated into 'main-golden', will be available in build *201210191216* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f8310bc15a21
User: Jan Becicka <jbecicka@netbeans.org>
Log: #217553 - Basic Cordova workflow is broken
#217552 - IllegalArgumentException: Parameter file was not normalized. Was null/lib/android/example/assets/www instead of /private/var/folders/7s/z748n8391216ckv5tk6nb7_w0000gn/T/null/lib/android/example/assets
#219295 - UnsupportedOperationException: Not supported yet.