Quick Start

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. 

Examples

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 installed

The following example demonstrates how to create Ant script for building existing BlackBerry workspace file. 

Prerequisites:
  1. RIM JDE is installed; 
  2. Apache Ant is installed; 
  3. RAPC ant task is downloaded; 
  4. Some BlackBerry workspace (.jdw) exists and ready to be built. 
Lets create build.xml and save it in the same directory where .jdw exists: 
<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 installed

The following example demonstrates how to use RAPC ant task for building existing BlackBerry workspace file with no Ant installed. 

Prerequisites:
  1. RIM JDE is installed; 
  2. RAPC ant task is downloaded; 
  3. Some BlackBerry workspace (.jdw) exists and ready to be built. 
Run the following command in the directory where HelloWorld.jdw exists: 
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.