BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-04-2007, 09:12 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: t-mobile
Posts: 44
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default rapc task for library

Please Login to Remove!

I need to build a library and include it into two other projects. I have successfully done this with the RIM IDE by marking one project as library and set the dependencies of the other two projects accordingly. But i don't like that IDE at all and would prefer to continue working with Eclipse.
Does somebody know how to configure the rapc-tasks in the ant file for building a library and including it into other projects, i would appreciate some advice.

Last edited by tschiefer : 09-04-2007 at 09:13 AM.
Offline  
Old 09-05-2007, 09:20 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: t-mobile
Posts: 44
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Answer to my own question

Code:
<?xml version="1.0" encoding="UTF-8"?>

<project name="AddressBook_Library" default="buildLib" basedir=".">

	<taskdef name="rim" classname="com.etaras.anttask.rapc.RAPC" classpath="lib/anttask-rapc-1.8.jar" />

	<property name="jdehome" value="C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1" />
	<property name="javahome" value="C:\Program Files\Java\jdk1.6.0_01" />
	<property name="simulator" value="${jdehome}\simulator" />
	<property name="bin" value="${jdehome}\bin" />

	<target name="buildLib">
		<rim jdehome="${jdehome}" javahome="${javahome}">
			<workspace src="AddressBook_Library.jdw" vendor="RedBull" version="0.1" update="true" build="true">
				<library  src="AddressBook_Library.jdp" description="AddressBook_Library" runonstartup="true" startuptier="7" output="AddressBook_Library" options="-quiet" update="true" build="true" >
					<files dir=".">
						<include name="**/*.java" />
						<include name="resources/**/*.*" />
					</files>
				</library>
			</workspace>
		</rim>
	</target>
</project>
I hope, this will help other developers facing a similar problem.

Last edited by tschiefer : 09-05-2007 at 09:33 AM.
Offline  
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

10ft Flint & Walling Star #7 Windmill Main Frame
$14.99
10ft Flint & Walling Star #7 Windmill Main Frame pictureCHROMA 63025 LOAD MODULE WITH 6301 MAINFRAME
$495.0
CHROMA 63025 LOAD MODULE  WITH 6301 MAINFRAME  pictureHP Agilent 66000A Mainframe w/ 4 66101A & 66104A DC Power Modules
$499.95
HP Agilent 66000A Mainframe w/ 4 66101A & 66104A DC Power Modules pictureTektronix TM502A Power Mainframe/ 2-Slot Chassis Fully Tested, 30 days warranty
$99.0
Tektronix TM502A Power Mainframe/ 2-Slot Chassis Fully Tested, 30 days warranty pictureHP Agilent 16702A Logic Analyzer Mainframe w/ 16500-40502 (x2) OPT 003
$149.99
HP Agilent 16702A Logic Analyzer Mainframe w/ 16500-40502 (x2) OPT 003 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.