BlackBerryForums.com : Your Number One BlackBerry Community  
   

»Sponsored Links



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
pwaugh Offline
Knows Where the Search Button Is
 
Posts: 40
Join Date: Mar 2008
Model: 8820
PIN: N/A
Carrier: at&t
Question Auto build number ants task - 07-19-2008, 12:00 AM

Anyone know of an existing auto increment build numbering task for Ant?

I looked on the online page, but the one commercial one listed leads to a dead URL.

I'm using Eclipse and looking for some way to auto inc my builds.
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
pwaugh Offline
Knows Where the Search Button Is
 
Posts: 40
Join Date: Mar 2008
Model: 8820
PIN: N/A
Carrier: at&t
Question Partial Solution: - 07-19-2008, 12:28 AM

Code:
  <!-- Update build number -->
    <target name="inc.build" description="Increments the build number" depends="init">
    <buildnumber file="build.number"/>
    </target>
Which then give me this:

#Build Number for ANT. Do not edit!
#Sat Jul 19 00:18:23 CDT 2008
build.number=0

in the build.number file.

Now, my question is if I want to say generate a version number like say 3.0.2.${build.number}, using this number, how do I do that? =)
   
Reply With Quote
  (#3 (permalink)) Old
pwaugh Offline
Knows Where the Search Button Is
 
Posts: 40
Join Date: Mar 2008
Model: 8820
PIN: N/A
Carrier: at&t
Default 07-19-2008, 03:34 AM

solved like this:

Code:
	<target name="-Build++" description="Increments the build number">
		<buildnumber file="build.number"/>
		<property name="version" value="3.0.0.${build.number}" />
	</target>
   
Reply With Quote
  (#4 (permalink)) Old
shraddha294 Offline
Thumbs Must Hurt
 
shraddha294's Avatar
 
Posts: 77
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Default 07-23-2008, 05:37 AM

Hey thanks for answering and updating ur own thread.. i needed this ....
   
Reply With Quote
Reply


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-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1