RAPC ant task is a freeware tool that simplifies and helps to automate the process of applications building for BlackBerry devices. You can use existing BlackBerry .jdp and .jdw files as a source for RAPC ant task as well as define projects and workspaces from scratch in build.xml.
Note: RAPC ant task uses BlackBerry rapc compiler so you can not use it without BlackBerry JDE installed.
In these examples we assume that the name of workspace file is HelloWorld.jdw, RIM JDE resides in directory "C:/Program Files/Research In Motion/BlackBerry JDE 4.0.2", JDK which will be used resides in directory "C:/jdk1.4.0". The anttask-rapc-1.8.jar copied into the directory where .jdw exists.
Example: Ant installedThe following example demonstrates how to create Ant script for building existing BlackBerry workspace file.
Prerequisites:<project name="Hello world" default="build" basedir="."> <taskdef name="rapc" classname="com.etaras.anttask.rapc.RAPC" classpath="anttask-rapc-1.8.jar"/> <target name="build" description="Composes JDW"> <rapc jdehome="C:/Program Files/Research In Motion/BlackBerry JDE 4.0.2" javahome="C:/jdk1.4.0"> <workspace src="HelloWorld.jdw" /> </rapc> </target> </project> |
Run ant command to build the workspace.
Example: no Ant installedThe following example demonstrates how to use RAPC ant task for building existing BlackBerry workspace file with no Ant installed.
Prerequisites:java -jar anttask-rapc-1.8.jar -javahome="C:/jdk1.4.0" -jdehome="C:/Program Files/Research In Motion/BlackBerry JDE 4.0.2" "HelloWorld.jdw" |
For further inquiry see Manual . If you prefer learning on examples, download zipped examples of using RAPC ant task at: anttask-rapc-example-1.8.zip
Copyright © 2005-2006 eTaras.com. All rights Reserved.