PhoneGap 1.9.0 BlackBerry Sample Not Building

128 views
Skip to first unread message

Applejacko

unread,
Jul 3, 2012, 3:15:27 PM7/3/12
to phon...@googlegroups.com
Hi,

There seems to be a problem with the 1.9.0 BlackBerry sample. The 1.8.1 sample is fine. It builds and installs, no problem.

I get, when I try to Ant build the 1.9.0 sample:

generate-cod-name:
     [echo] Generated name: __NAME__.cod
...
      [zip] Building zip: /Users/applejacko/Documents/MobileApp/BlackBerry/localSVN/sample190/build/__NAME__.zip

Something's amiss with one of the Ant or other XML files or something, with some string substitution, I'm guessing. I'm doing the same thing in each sample:
  • Copying the sample directory off somewhere else
  • Changing project.properties blackberry.bbwp.dir to point at my smartphone SDK
  • Typing "ant blackberry build"
so I don't think it's pilot error...

Thanks,

Jack

Drew Walters

unread,
Jul 3, 2012, 5:21:05 PM7/3/12
to phon...@googlegroups.com

You can just change the __NAME__ text in config.xml. If you use the new create script in replaces the text for you.

-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com

Applejacko

unread,
Jul 3, 2012, 6:29:21 PM7/3/12
to phon...@googlegroups.com

Drew,

The old 1.8.1 version just required "ant blackberry build" and "ant blackberry load-device" to build and run. Worked like a charm. I thought the __NAME__ issue was a string substitution error, but now I see the two config.xml files differ from one another. 

Where is the "create script" to which you refer? I searched the sample folder for "create" and I don't see it. What's it called??

Thanks,

Jack



On Tuesday, July 3, 2012 4:21:05 PM UTC-5, Drew wrote:

You can just change the __NAME__ text in config.xml. If you use the new create script in replaces the text for you.

On Jul 3, 2012 2:15 PM, "Applejacko" <jack.pi...@gmail.com> wrote:
Hi,

There seems to be a problem with the 1.9.0 BlackBerry sample. The 1.8.1 sample is fine. It builds and installs, no problem.

I get, when I try to Ant build the 1.9.0 sample:

generate-cod-name:
     [echo] Generated name: __NAME__.cod
...
      [zip] Building zip: /Users/applejacko/Documents/MobileApp/BlackBerry/localSVN/sample190/build/__NAME__.zip

Something's amiss with one of the Ant or other XML files or something, with some string substitution, I'm guessing. I'm doing the same thing in each sample:
  • Copying the sample directory off somewhere else
  • Changing project.properties blackberry.bbwp.dir to point at my smartphone SDK
  • Typing "ant blackberry build"
so I don't think it's pilot error...

Thanks,

Jack

-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to

Drew Walters

unread,
Jul 9, 2012, 10:47:58 AM7/9/12
to phon...@googlegroups.com
The new create script is in lib/blackberry/bin from the full phonegap
download. You can use it to create a new sample project or you can
just copy the sample folder. If you copy the sample folder you'll need
to replace the "__NAME__" string in config.xml with your desired
application name.
>>> phonegap+u...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/phonegap?hl=en?hl=en
>>>
>>> For more info on PhoneGap or to download the code go to www.phonegap.com
>>>
>>> To compile in the cloud, check out build.phonegap.com
>
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com

Drew Walters

unread,
Jul 12, 2012, 2:29:37 PM7/12/12
to phon...@googlegroups.com
If you copied the sample project it is in the www folder.

On Thu, Jul 12, 2012 at 12:37 PM, dblanco <dblanco....@gmail.com> wrote:
> Where is the file config.xml? I have the same problem, fails because it
> tries to create __ NAME__.cod
Reply all
Reply to author
Forward
0 new messages