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

4 Lamp F54T5 Flourescent Ballast Light Lamp Bulb Programmed 1.00 Plusrite 7319
$33.85
4 Lamp F54T5 Flourescent Ballast Light Lamp Bulb Programmed 1.00 Plusrite 7319 pictureUniversal Magnetic Halide M250 ML 5AC4M -500K Ballast Kit
$24.5
Universal Magnetic Halide M250 ML 5AC4M -500K Ballast Kit  pictureGotham Light Fixture/Ballast. GRSH 70M 8 120/277 MED HSGU
$30.0
Gotham Light Fixture/Ballast. GRSH 70M 8 120/277 MED HSGU pictureLot of 10 Sylvania Quicktronic Ballasts QHE4X32T8/UNV ISN-SC
$29.99
Lot of 10 Sylvania Quicktronic Ballasts QHE4X32T8/UNV ISN-SC pictureAdvance Ballasts S-285-TP High Power Factor 118 V NOS
$35.0
Advance Ballasts S-285-TP High Power Factor 118 V NOS  picture






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