I just downloaded PhoneGap 2.6.0 and I'm trying to create a BlackBerry project using the command line tools and I'm having some trouble. If I read the instructions that come with the download, it tells me that on BlackBerry I should just copy the existing example file to a new folder and use that for my project. It says:
"The blackberry directory contains several directories. The
example
folder contains a complete Cordova project. Copy the
example
folder to another location on your computer."
But how much fun is that.
When I read the readme.md file that is found in the PhoneGap BlackBerry folder it says that I can create a project using the following command:
"./bin/create [path appname packagename]"Which doesn't happen to work on Windows, but I guess that's not important.
so, If I open a command prompt and navigate to the phonegap installation's blackberry folder and issue the following command:
bin\create.bat c:\dev\test99 helloworld com.jwargo.helloworldI get an error that says:
"c:\phonegap-2.6.0\lib\blackberry\bin\create.js>53, 13> Microsoft JScript runtime error: Path Not Found"
Looking at the JavaScript file I see that the error is being generated by this line:
fso.CreateFolder(libsPath);I've tried all sorts of permutations of the command line and I get the same error.
Now, if I sit at the PhoneGap BlackBerry folder and issue the following command:
ant create -Dproject.path=c:\dev\test99It works beautifully and creates the new project in the test99 folder as expected.
so, can someone help me understand what's going on here? Why have the command line tools if you're not supposed to use them and/or they don't work as documented?
John M. Wargo
www.johnwargo.comwww.phonegapessentials.com