BlackBerry Forums Support Community
              

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

Please Login to Remove!

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.
Offline  
Old 07-19-2008, 12:28 AM   #2
pwaugh
Knows Where the Search Button Is
 
Join Date: Mar 2008
Model: 8820
PIN: N/A
Carrier: at&t
Posts: 40
Question Partial Solution:

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? =)
Offline  
Old 07-19-2008, 03:34 AM   #3
pwaugh
Knows Where the Search Button Is
 
Join Date: Mar 2008
Model: 8820
PIN: N/A
Carrier: at&t
Posts: 40
Default

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>
Offline  
Old 07-23-2008, 05:37 AM   #4
shraddha294
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Default

Hey thanks for answering and updating ur own thread.. i needed this ....
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts picture

4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts

$49.99



Accupro 703-00004-001  1 or 2 lamp T12 Rapid-Start Electronic Ballast  picture

Accupro 703-00004-001 1 or 2 lamp T12 Rapid-Start Electronic Ballast

$8.50



Advance RS-2S110-2-TP Rapid Start Ballast picture

Advance RS-2S110-2-TP Rapid Start Ballast

$39.99



Philips ADVANCE AmbiStar RELB-2S40-N Replacement Ballast 40-Watt 2-Lamp T12 picture

Philips ADVANCE AmbiStar RELB-2S40-N Replacement Ballast 40-Watt 2-Lamp T12

$18.79



Metal Halide Ballast Kit 400W Multi 5 Tap 120V 208V 240V 277V 480V M59, LumaPro picture

Metal Halide Ballast Kit 400W Multi 5 Tap 120V 208V 240V 277V 480V M59, LumaPro

$54.49



Universal Lighting B228PUNV115-D Electronic Ballast F28T5 120V TO 277V 50/60Hz picture

Universal Lighting B228PUNV115-D Electronic Ballast F28T5 120V TO 277V 50/60Hz

$29.99







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