BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
bdowling Offline
Thumbs Must Hurt
 
Posts: 181
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Default Signing COD files with an Ant build script - 01-25-2007, 10:37 AM

Hi all,

I'm developing a blackberry application in eclipse, and building my cod file with a ANT (and antenna) build script. Everything is working perfectly, and I can manually use the signature tool to sign the cod file. However, is there any way to automate the signing process?

Cheers, Ben
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
Skipper_Joe Offline
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Posts: 237
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Default 01-26-2007, 02:48 AM

you can run SignatureTool from ANT script automatically:

Code:
<java jar="path\to\SignatureTool.jar" fork="true" 
        dir="path\to\cod\files" failonerror="true">
    <arg line=" -a -c -C  *.cod"/>
</java>
but you still need to enter password manually in the popup window.
   
  (#3 (permalink)) Old
bdowling Offline
Thumbs Must Hurt
 
Posts: 181
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Default Thanks! - 01-26-2007, 03:47 AM

Excellent - exactly what I was after!

Cheers
   
  (#4 (permalink)) Old
jack_martynov Offline
New Member
 
Posts: 2
Join Date: Jan 2007
Model: 7520
Default 01-30-2007, 05:57 AM

Is there possibility to add pasword automatically? Maybe in 4.2 version?
   
  (#5 (permalink)) Old
jack_martynov Offline
New Member
 
Posts: 2
Join Date: Jan 2007
Model: 7520
Default 01-31-2007, 11:33 AM

I wrote my own app that fills password into promt window.
   
  (#6 (permalink)) Old
bdowling Offline
Thumbs Must Hurt
 
Posts: 181
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Default 02-05-2007, 03:59 AM

How about an ant task to automatically update the cod on the connected device?
   
  (#7 (permalink)) Old
Skipper_Joe Offline
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Posts: 237
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Default 02-05-2007, 10:20 AM

You mean run JavaLoader.exe from <exec> task? Something like this?

Code:
<exec executable="C:\Program Files\Research In Motion\BlackBerry JDE 4.1.0"
         dir="path/to/cod/file" failonerror="true">
         <arg value="-u"/>
         <arg value="load"/>
         <arg value="HelloWorld.cod"/>
</exec>
It should work, but I didn't try it myself yet.
   
  (#8 (permalink)) Old
bdowling Offline
Thumbs Must Hurt
 
Posts: 181
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Default Thanks! - 02-06-2007, 05:28 AM

Needed a few tiny changes but I got it working, thanks!

Code:
	<!-- Load to device -->
	<target name="load" depends="sign">

		<exec executable="${bb.buildjars.home}/JavaLoader.exe" dir="." failonerror="true">
			<arg value="-u" />
			<arg value="load" />
			<arg value="output/tocod/${codename}.cod" />
		</exec>
	</target>
   
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-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.