BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
richever Offline
Thumbs Must Hurt
 
Posts: 53
Join Date: Jan 2006
Location: San Francisco, CA
Model: 7290
Carrier: Cingular
Default Building without JDE... - 01-11-2006, 08:38 PM

Has anyone been able to build a project with a custom screen icon, auto-run library etc. from outside JDE? And, if so, can you provide pointers?

Thanks!

Richard
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
sacramentojoe Offline
Knows Where the Search Button Is
 
Posts: 30
Join Date: Apr 2005
Model: 7230
Default 01-11-2006, 11:06 PM

I personally haven't done it but if you google for a build script I know they are out there. I've found them before but decided it would be easier & faster just to use the JDE.
Good luck.

The ones I saw were using Ant and had a build.xml file.
   
  (#3 (permalink)) Old
eradis Offline
Talking BlackBerry Encyclopedia
 
Posts: 221
Join Date: Sep 2004
Model: 8700r
Carrier: Rogers
Default 01-12-2006, 08:46 AM

I did it quite some time ago. Using eclipse and ant I managed to mimic the RIM JDE building environment.

I suggest creating a simple RIM JDE project (that does everything you want to mimic) and then go 'Build'->'Generate Makefile and Resources'. The other thing if I remember correctly is to look at the JAD file - it defines the auto-run part.
   
  (#4 (permalink)) Old
richever Offline
Thumbs Must Hurt
 
Posts: 53
Join Date: Jan 2006
Location: San Francisco, CA
Model: 7290
Carrier: Cingular
Default 01-12-2006, 12:56 PM

Do you recall what property in a JAD file marks a project as auto-run? Thanks!

Richard
   
  (#5 (permalink)) Old
Taras1 Offline
New Member
 
Posts: 13
Join Date: Jan 2006
Model: -
Default 01-16-2006, 07:00 AM

Check this ant task: http://www.etaras.com/blackberry/rapc/ . This may be what you are searching for.
   
  (#6 (permalink)) Old
richever Offline
Thumbs Must Hurt
 
Posts: 53
Join Date: Jan 2006
Location: San Francisco, CA
Model: 7290
Carrier: Cingular
Default 01-18-2006, 03:40 PM

Thanks for the reply, taras1. I appreciate the help but I can't take any more time on trying to duplicate RIM's build process. So, I'm just going to drink the cool-ade and go with JDE and their .mak files, which require nmake. Ick! Hopefully, I'll be able to wrap the calls to these files in an ant build script so we can integrate this project - at least somewhat - into our build process.

Rich
   
  (#7 (permalink)) Old
lorennorman Offline
Knows Where the Search Button Is
 
Posts: 22
Join Date: Jan 2006
Model: 7520
Default 01-18-2006, 04:41 PM

Ant is pretty awesome for this, if you already know how to use ant and are making midlets, one step further to make cods is not bad. Soon as i get signing worked i'll be integrating code signing into the build process (so many steps!), but its very nice to have everything parameterized and ready to roll all the time, as it sounds like you already know. If anyone wants my build script, i'd post it happily, might give you a boost!
   
  (#8 (permalink)) Old
richever Offline
Thumbs Must Hurt
 
Posts: 53
Join Date: Jan 2006
Location: San Francisco, CA
Model: 7290
Carrier: Cingular
Default 01-18-2006, 04:49 PM

lorennorman, I'd be interested in seeing your build script. I was using Antenna, which contains a rapc task, previously and I seemed unable to do the following:

- Get app's home screen icon display. Kept getting the default icon no matter what I did.
- Set an alternate entry point. (Can this done without the .jdp file?)
- Mark an application as auto run. (Can this done without the .jdp file?)

I tried figuring out what need to be done to the .rapc and .jad files but no matter what I did I could not get the home screen icon to display. I didn't even attempt the alternate entry point and auto run features.

If I have time later I'd still like to get automate building etc. with ant so if you know what I may be missing then please let me know.

Rich
   
  (#9 (permalink)) Old
Taras1 Offline
New Member
 
Posts: 13
Join Date: Jan 2006
Model: -
Default 01-19-2006, 03:10 AM

Rich, you don't need to use Antenna for performing tasks which are specific to BlackBerry projects.
All of what you have mentioned is possible with the help of RAPC ant task.

As a first step define a task in your build.xml:
Code:
	<taskdef name="rapc" classname="com.etaras.anttask.rapc.RAPC" 
		classpath="anttask-rapc-1.1.jar"/>
Quote:
Originally Posted by richever
- Get app's home screen icon display. Kept getting the default icon no matter what I did.
Use icons element to define an icon to be used:
Code:
<rapc ...> <!-- RAPC task definition -->
	<workspace...> <!-- Workspace definition -->
		<cldc src="Project.jdp" ...> <!-- Project definition -->
			...
				<icons dir=".">
					<include name="resource/**/*.png" />
				</icons>
			...
		</cldc>
	</workspace>
</rapc>
Quote:
Originally Posted by richever
- Set an alternate entry point. (Can this done without the .jdp file?)
1. With .jdp file:
Code:
<rapc ...> <!-- RAPC task definition -->
	<workspace...> <!-- Workspace definition -->
		<cldc src="Project.jdp" ...> <!-- Project definition -->
			...
		</cldc>
		<cldcentrypoint src="Project_EntryPoint.jdp"/>
	</workspace>
</rapc>
2. Without of .jdp file (Project_EntryPoint_.jdp doesn't exist):
Code:
<rapc ...> <!-- RAPC task definition -->
	<workspace...> <!-- Workspace definition -->
		<cldc src="Project.jdp" ...> <!-- Project definition -->
			...
		</cldc>
		<cldcentrypoint src="Project_EntryPoint_.jdp"
			title="Alternative entry point for Project"
			project="Project"
			arguments="autostart"
			systemmodule="true"
			runonstartup="true"
			startuptier="7"
			options="-quiet"
			update="true"
			build="true" 
		/>
	</workspace>
</rapc>

Quote:
Originally Posted by richever
- Mark an application as auto run. (Can this done without the .jdp file?)
Sure. Use parameter: runonstartup. See example above. Can be done both with and without of .jdp file.

I think with your requirements you should look closer at http://www.etaras.com/blackberry/rapc/.

Taras.
   
  (#10 (permalink)) Old
richever Offline
Thumbs Must Hurt
 
Posts: 53
Join Date: Jan 2006
Location: San Francisco, CA
Model: 7290
Carrier: Cingular
Default 01-19-2006, 12:55 PM

Quote:
Originally Posted by Taras1
I think with your requirements you should look closer at http://www.etaras.com/blackberry/rapc/.
Taras.
Yes, and I will! This is just what I've been looking for. When I have a chance I'll give this a closer look!

Thanks!

Rich
   
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-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.