Build Script
Even if you don't have GNU make or Apache Ant installed, you can whip together a quick and dirty build script using Notepad or another basic text editing program. Use the build script in Listing 11-2 to generate a new application without requiring Eclipse to be open. You can modify the variables at the top of the script with the location of your BlackBerry component package, signing password, and so on.
Listing 11-2. Build Batch File set JDE_PATH=C:\dev\ide\eclipse_34\plugins\^
net.rim.eide.componentpack4.7.0_4.7.0.46\components\ set PASSWORD=swordfish set FILES=MediaGrabber.java ChoicesScreen.java PlayingScreen.java^
RecordingScreen.java SendingScreen.java StatusUpdater.java MediaGrabber.rrh^ MediaGrabber.rrc MediaGrabber_cs.rrc MediaGrabber_en.rrc^ MediaGrabber_en_GB.rrc MediaGrabber_en_US.rrc set SOURCEPATH=src\com\apress\king\mediagrabber set STARTDIR="%CD%" cd %SOURCEPATH%
%JDE_PATH%\bin\rapc.exe -import="%JDE_PATH%\lib\net_rim_api.jar" %FILES% %JDE_PATH%\bin\SignatureTool.jar -a -p %PASSWORD% -c MediaGrabber.cod copy MediaGrabber.cod %STARTDIR% cd %STARTDIR%
Post a comment