BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-29-2009, 10:19 PM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default how to force jad file to be re-generated on each build

Please Login to Remove!

I am using Eclipse with the BlackBerry plugin. Each time I build the active BlackBerry project (Alt+B) it appears that Eclipse re-writes the jad file (the timestamp on the file changes), but the contents of the jad file is not re-written!

I am using the version string in the BlackBerry project properties to contain the version of my program. But I just discovered that even though I change the version string in the properties window (and I can verify that the value was changed by looking in the jdp file), when I build the active BlackBerry project, the MIDlet-Version string in the jad file does not get changed. Yet if I delete the jad file and rebuild the BB project, then the jad file is written with the correct version string.

It would really be nice if the build correctly wrote the jad file, but short of that, how can I automatically have the jad file deleted? As a matter of procedure, I typically do a project clean and build all, before building the acitve BB project. Is it possible to change the clean procedure in Eclipse to make it delete the old jad file? Is there another/better solution?

By the way, RIM - the fact that you do not correctly write the version string to the jad is a BUG !!
Offline  
Old 07-30-2009, 08:34 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

It has been that way forever.

We added a manual step to the "clean" action to remove the JAD - if it is gone, then it gets correctly written.
Offline  
Old 07-30-2009, 09:22 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Yes, thanks.

I should have followed up on this post. I had a discussion with someone on another forum about this. See here.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.