BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-04-2007, 10: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 10:13 AM.
Offline  
Old 09-05-2007, 10: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 10: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





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