Blackberry ANT Script

I’ve created what I think is a nice little generic ANT script for my various blackberry projects.  This script includes the ability to do the following things:

  • Configure an application with multiple entry points (if you need to have an app that has a startup/background component and a GUI accessible from a ribbon icon).
  • Sign the COD file
  • Handle the funky “COD file that is actually a ZIP file with other COD files in it” situation gracefully (it unzips and extracts the separate CODs so the JAD can load properly)
  • Upload the JAD/COD file(s) to server environments for deployment (by default it has dev, qa and prod servers configured)
  • Email a list of recipients a notification of the deployed file with a link to the JAD to download

 

This ANT script makes use of the bb-ant-tools library, without that it’d be quite ugly to build.  Requirements for running the tasks:

Instructions are in the ANT script, please follow them to set the properties you’ll need to setup for your project’s needs.  There is no license associated with this, just use it however you wish, if you wish.  I think it’d be useful for people as a starting point.  If you liked it, let me know.  If you hated it and have better ideas for it, let me know.

 

Download it here:
46 blackberry-build.xml

Share and Enjoy:
  • email
  • Add to favorites
  • Google Bookmarks
  • MySpace
  • StumbleUpon
  • Yahoo! Buzz
  • Reddit
  • Facebook
  • del.icio.us
  • Digg
  • Twitter
This entry was posted in BlackBerry. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Comments

  1. Chad Lafontaine
    Posted January 28, 2009 at 12:11 am | Permalink

    Thanks for the code. One thing I added was a “run simulator from Ant” target, the idea taken from http://www.ddj.com/mobile/48800167?pgno=5 . I had a better experience getting your build.xml file to run, using bb-ant-tools over antenna. Thanks again!

  2. Eric
    Posted January 28, 2009 at 3:35 am | Permalink

    Hey, Chad. I’m really glad the script was useful for you. I’d love to see the target you added for running the simulator from Ant. I’ve only been using the script to handle deployments to QA/Prod, but it would be nice to be able to run the app in the simulator from the script as well.

    Let me know if you run into anything that didn’t work well. Thanks for letting me know you gave it a whirl.

    -Eric

One Trackback

  1. By Life Hacking on June 24, 2009 at 5:20 pm

    [...] BlackBerry development ANT task is a huge time saver also.  It’s nothing special, but I’m happy that it gives me [...]

Leave a Comment

Your email is never published nor shared. Required fields are marked *

*
*