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
rgelb1
Posts: 108
Registered: ‎08-05-2008
My Device: Not Specified

Command line compilation

I can't seem to find any articles on command line compilation of JDE apps.  Is it possible?  If so, please point to a URL.

 

Thanks. 

Please use plain text.
Developer
rafo
Posts: 507
Registered: ‎07-15-2008
My Device: Not Specified

Re: Command line compilation

[ Edited ]

JDE uses rapc.exe for compilation purposes. And as far as I know there is no official documentation on rapc command-line keys is available.

 

But there are some non-official resources.

 

Check the following links:

 

Blackberry ANT Tools

 

Blackberry development with ANT and Eclipse

 

Blackberry development using Apache ANT

 

Using ANT to build Blackberry projects

Message Edited by rafo on 09-03-2008 09:57 PM
----------------
if your issue solved set "Solution" mark at the relevant post
Please use plain text.
Developer
marchywka
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: Command line compilation

Since I couldn't figure out how to read parameters from the jad file, I had to generate scripts to make customer specific

( branded apps). I was able to just run the ide and look at the output in the build status box at the bottom and copy/paste

guess enough to make it work. I ended up with automated compile and signing but, probably due to some

other constraints, I never got the resource bundles to work right ( I'm trying to do everything without packages ).

 

It would be nice if invoking rapc with no options printed some help like most other command line apps :smileyhappy:

I posted a signing script piece earlier.

I'm compiling under multiple JDE's on cygwin using this subroutine,  

 

rimm_compile_rapc()
{
WK="warnkey=0x52424200;0x52525400;0x52435200"

RAPC="$rimm_compile_dir"/rapc.exe
#note that RROT could have changed up until now, so convert to windoze lazily
FUPAT=`cygpath -w "$rimm_compile_dir"`
# equivalent to TDW
cd "$2"
MID2="$1.rapc"
JNAMEX="$1".jad
if [ -e "$JNAMEX" ]
then
#echo need to manually deletee $JNAMEX or jad will have multiple entries...
echo you should remove $JNAMEX to avoid dup entires, deleting now, hope that is ok
rm "$JNAMEX"
fi
echo using $RAPC $FUPAT
# I think we have cd'ed to TDW so paths removed..
$RAPC -quiet import="$FUPAT\..\lib\net_rim_api.jar" codename="$1"  $MIDFLAG "$MID2" "$WK" ${STUFF} "xxx.java"  "xxx.png"  -icon "xxx.png"
if [ "$?" != "0" ] ; then echo compiler failed so stop ; exit -1; fi
}

 

Please use plain text.