Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 04-19-2011, 08:09 AM
CrackBerry Newbie
 
Join Date: Apr 2011
Posts: 4
Likes Received: 0
Thanked 0 Times in 0 Posts
Default ANT build script, problem with packaging using rapc

Hello,

I've got a problem with a build script in ant. The project build successfully but the architecture of catalogues inside the JAR and later COD files is not correct. The structure of my project catalogues is:

--build.xml
--src
--res
|-240*
|-320*
|-360*
|-480*
|-some images and other resources

*these folders contain the same set of graphics for different resolutions

I would like to have the 'res' catalogue in the JAR (and later COD) in the same structure as it is in the project, so in other words to take away whole /res directory and set it in the COD file.

The essential part of my build script is:

Code:
		<rapc verbose="true"
		      exepath="${jde.home}/bin"
		      destdir="${basedir}/build"
		      jdehome="${jde.home}"
		      output="ApplicationName"
		>
			<src path="${basedir}/src" />
			<src path="${basedir}/res" />
			
			<import location="${basedir}/lib/Library.jar" />
			<jdp type="library"
			     title="Library"
			     vendor="VENDOR"
			     version="${version}"
				description="lib"
			/>
			<jdp type="cldc"
			     description="${client.desc}"
			     title="${client.name}"
			     vendor="VENDOR"
			     version="${version}"
			     runonstartup="true"
			     systemmodule="true"
			>
				<entry arguments="gui"
				       icon="icon.png"
				       runonstartup="false"
				       systemmodule="false"
				       ribbonposition="3"
					   title="${client.name}"
				/>
				<entry arguments="service"
					systemmodule="true"
					runonstartup="true"
					startuptier="7"
					title="Service"
				/>
			</jdp>
		</rapc>
I think that I'm doing something wrong with the

<src path="${basedir}/res" />

part. The effect for now is that the largest 480 subdirectory contents are copied into the COD file. I suspect the all images from all resolution folders are simply copied but the 480 contents overwrite the previous so they are left only.

Please help
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   ANT build script, problem with packaging using rapc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes