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
Highlighted
Developer
Posts: 44
Registered: ‎03-10-2009
My Device: Not Specified

How to include text & binary files into the build artifact

I've added a property file & a binary file to 

the subdirectory "res" of my project.

 

In eclipse, I can choose ALT+ENTER and add icon files to the generated artifacts.

 

Do I have to run rapc manually to add my custom files ?

 

Thanks


 

P.S. What is difference between icon and focus icon files ? 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to include text & binary files into the build artifact

Sorry not familar with the Eclipse terminology, so not sure I understand what you are asking, but does this help?

 

How To - Add plain text or binary files to an application
Article Number: DB-00148
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To_...

Developer
Posts: 44
Registered: ‎03-10-2009
My Device: Not Specified

Re: How to include text & binary files into the build artifact

Hi peter,

 

Yes I know how to read in the custom files but when we package the app, the custom files need to be added to the generated JAR or COD files, no?

 

After a bit of fiddling around, I added the project/res directory into my build path. And it is working.

 

Regards,


Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to include text & binary files into the build artifact

In the JDE, if you add the files to the project, they will be automatically put in the jar/cod files.  I add things like like icons, pictures or even standard bits of XML text in this way.  Not sure this answers the question.  If not, can you ask again?
New Developer
Posts: 8
Registered: ‎12-23-2009
My Device: Not Specified

Re: How to include text & binary files into the build artifact

how about eclipse environment, in eclipse how to inclue a text file into the biuld? and how to read this text file ?

 

thanks