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  




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