Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 81
Registered: ‎07-16-2008
My Device: Curve - 8320
My Carrier: AirTel

How to build project with ResourceBundle using ANT ...

Hello,

 

I am tring to use ResourceBundle tostore strings into it in my project. My Project compiles fine withe the JDE IDE, but when I try to build it using the ANT builder, it throws errors on every line that uses the constants in the ResourceBundle.

 

For example, the following statement compiles fine with the IDE but raise compile time error when using ANT-

 

AYSPhone.resources = ResourceBundle.getBundle(AYSPhoneResource.BUNDLE_ID, AYSPhoneResource.BUNDLE_NAME);

The error flashed by ANT is:

cannot resolve symbol: AYSPhoneResource within class com...AYSPhone

 

I understand that "wtkbuild" is unable to locate the refered symbol within the specific class path, but then How do I fix it ?

 

Thanks in Advance,

 

*(Vipul)() ;
Developer
Posts: 81
Registered: ‎07-16-2008
My Device: Curve - 8320
My Carrier: AirTel

Re: How to build project with ResourceBundle using ANT ...

[ Edited ]

I have already tried the following path element entry within the taskdef block:

 

  <taskdef name="wtkbuild" classname="de.pleumann.antenna.WtkBuild" classpath="${build.jars}/antenna.jar">
    <classpath>
       <pathelement path="${src}/java/com/companyname/blackberry/aysphone"/>
    </classpath>
  </taskdef>

But no luck ... :-(

 

Message Edited by VipulPathak on 09-02-2008 01:44 AM
*(Vipul)() ;
Developer
Posts: 81
Registered: ‎07-16-2008
My Device: Curve - 8320
My Carrier: AirTel

Re: How to build project with ResourceBundle using ANT ...

Anyone ?

 

*(Vipul)() ;
Developer
Posts: 26
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to build project with ResourceBundle using ANT ...

Try to use command lie to compile.
Highlighted
New Developer
Posts: 2
Registered: ‎07-21-2008
My Device: Not Specified

Re: How to build project with ResourceBundle using ANT ...

I think this fails because wtkbuild is MIDLET specific.  Try using the antenna wtkrapc task instead.