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

Mymazn Waiter Book Server Wallet Server Pads Waitress book Restaurant Waitstaff
$15.54
Mymazn Waiter Book Server Wallet Server Pads Waitress book Restaurant Waitstaff pictureUSED RoHS A2-24S3D REV .11 AXS8000-S24 VER:B 24 port hard drive server board
$275.0
USED RoHS A2-24S3D REV .11 AXS8000-S24 VER:B 24 port hard drive server board pictureAvaya TN2312AP IPSI HV2 Server Interface Circuit Board/Card/Pack -Lot of 2
$9.99
Avaya TN2312AP IPSI HV2 Server Interface Circuit Board/Card/Pack -Lot of 2 pictureAxis 241Q Standalone Four-Channel Video Server 0185-001-04
$59.99
Axis 241Q Standalone Four-Channel Video Server 0185-001-04 pictureChef Works Waist Server Apron (F9)
$13.42
Chef Works Waist Server Apron (F9) picture






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