Re: Reset BuildNumber

2009-05-07 Thread Michael Ludwig
Francis Galiegue schrieb am 07.05.2009 um 23:03:44 (+0200): > Le Thursday 07 May 2009 22:41:18 Michael Ludwig, vous avez écrit : Thank you all for your quick response. > > * http://ant-contrib.sourceforge.net/ > > The download link points to sources for cpptasks.jar. On http://sourceforge.net/

Re: Reset BuildNumber

2009-05-07 Thread Francis Galiegue
Le Thursday 07 May 2009 22:41:18 Michael Ludwig, vous avez écrit : > Francis Galiegue schrieb am 06.05.2009 um 23:23:37 (+0200): > > > > > > > > > > I've become curious why one is supposed to write so many lines of code > to generate a number, and how it all works, so I copied this script to

Re: Reset BuildNumber

2009-05-07 Thread Eric Fetzer
From: Michael Ludwig To: Ant Users List Sent: Thursday, May 7, 2009 2:41:18 PM Subject: Re: Reset BuildNumber Francis Galiegue schrieb am 06.05.2009 um 23:23:37 (+0200): > > > >    I've become curious why one is supposed to write so many lines of code to generate a number, and

RE: Reset BuildNumber

2009-05-07 Thread Martin Gainty
Thu, 7 May 2009 22:41:18 +0200 > From: mil...@gmx.de > To: user@ant.apache.org > Subject: Re: Reset BuildNumber > > Francis Galiegue schrieb am 06.05.2009 um 23:23:37 (+0200): > > > > > > > > > > > I've become curious why one is suppos

Re: Reset BuildNumber

2009-05-07 Thread Michael Ludwig
Francis Galiegue schrieb am 06.05.2009 um 23:23:37 (+0200): > > > > I've become curious why one is supposed to write so many lines of code to generate a number, and how it all works, so I copied this script to my disk and started Ant on it. But the ant-contrib resource is missing. Looking

Re: Reset BuildNumber

2009-05-07 Thread Eric Fetzer
, May 7, 2009 10:20:17 AM Subject: Re: Reset BuildNumber Le Thursday 07 May 2009 17:50:34 Eric Fetzer, vous avez écrit : > So what do you think about this? > Even better than what I came up with to my eyes ;) I'd still have used the macro, though. It also tells me that you have th

Re: Reset BuildNumber

2009-05-07 Thread Francis Galiegue
Le Thursday 07 May 2009 17:50:34 Eric Fetzer, vous avez écrit : > So what do you think about this? > Even better than what I came up with to my eyes ;) I'd still have used the macro, though. It also tells me that you have the choice to your input parameters, since you changed the whole "xxIncre

Re: Reset BuildNumber

2009-05-07 Thread Francis Galiegue
Le Thursday 07 May 2009 17:08:13 Eric Fetzer, vous avez écrit : > Why do you use  for one line of code?  Basically, you're creating > a subset of with .  Is that standard among the Ant > community? > I don't know, since I can't really describe myself as being a member of the ant community ;) I l

Re: Reset BuildNumber

2009-05-07 Thread Eric Fetzer
}                                                                                                                             From: Francis Galiegue To: Ant Users List Sent: Wednesday, May 6, 2009 3:23:37 PM Subject: Re: Reset BuildNumber Le Wednesday 06 May 2009 19:17:25

Re: Reset BuildNumber

2009-05-07 Thread Eric Fetzer
Why do you use  for one line of code?  Basically, you're creating a subset of with .  Is that standard among the Ant community? From: Francis Galiegue To: Ant Users List Sent: Wednesday, May 6, 2009 3:23:37 PM Subject: Re: Reset BuildNumber Le Wednesd

Re: Reset BuildNumber

2009-05-07 Thread Eric Fetzer
From: Francis Galiegue To: Ant Users List Sent: Wednesday, May 6, 2009 3:23:37 PM Subject: Re: Reset BuildNumber Le Wednesday 06 May 2009 19:17:25 Eric Fetzer, vous avez écrit : > Get sidetracked? > Yup, but I got the result ;) Here it is. Feel free to ask questions. This fi

Re: Reset BuildNumber

2009-05-06 Thread Francis Galiegue
Le Wednesday 06 May 2009 19:17:25 Eric Fetzer, vous avez écrit : > Get sidetracked? > Yup, but I got the result ;) Here it is. Feel free to ask questions. This file is based on a build.number file which contains the major.number, minor.number, etc properties, and rewrites said file with the new

Re: Reset BuildNumber

2009-05-06 Thread Eric Fetzer
Get sidetracked? From: Francis Galiegue To: Ant Users List Sent: Monday, May 4, 2009 2:26:40 PM Subject: Re: Reset BuildNumber Le Monday 04 May 2009 22:02:04 Eric Fetzer, vous avez écrit : > Thank you very much Francis!  I really appreciate the hand hold

Re: Reset BuildNumber

2009-05-04 Thread Francis Galiegue
Le Monday 04 May 2009 22:02:04 Eric Fetzer, vous avez écrit : > Thank you very much Francis!  I really appreciate the hand holding as I > transition over to Ant... > You're more than welcome, since you have taught me a way to use ant-contrib tasks without having namespace issues like I did in the

Re: Reset BuildNumber

2009-05-04 Thread Eric Fetzer
Thank you very much Francis!  I really appreciate the hand holding as I transition over to Ant... From: Francis Galiegue To: Ant Users List Sent: Monday, May 4, 2009 1:48:44 PM Subject: Re: Reset BuildNumber Le Monday 04 May 2009 21:03:58 Eric Fetzer, vous

Re: Reset BuildNumber

2009-05-04 Thread Francis Galiegue
Le Monday 04 May 2009 21:03:58 Eric Fetzer, vous avez écrit : > I had to go a little deeper, David.  I wanted to be able to rebuild the > same build number and also, have a 5th build element when built by > continuous integration.  Something that bugs me about Ant properties (I've > been writing wi

Re: Reset BuildNumber

2009-05-04 Thread Eric Fetzer
___ From: David Weintraub To: Ant Users List Sent: Monday, May 4, 2009 12:41:13 PM Subject: Re: Reset BuildNumber Just playing around a bit and simplified

Re: Reset BuildNumber

2009-05-04 Thread David Weintraub
Just playing around a bit and simplified the whole thing: -- David Weintraub

Re: Reset BuildNumber

2009-05-04 Thread David Weintraub
Sorry it took so long to respond... The task takes a file and increments the number in the file. If the file doesn't exist, Ant will create it and put the number "0" in there. It is NOT for a complex build number that includes major.minor.micro numbering. It's simply an integer. There have been

Re: Reset BuildNumber

2009-05-04 Thread Eric Fetzer
Thanks Francis, this cleaned it up A LOT! From: Francis Galiegue To: Ant Users List Sent: Saturday, May 2, 2009 2:50:06 AM Subject: Re: Reset BuildNumber Le Friday 01 May 2009 19:46:14 Eric Fetzer, vous avez écrit : > So to make it work, here's what

Re: Reset BuildNumber

2009-05-02 Thread Francis Galiegue
Le Saturday 02 May 2009 10:50:06 Francis Galiegue, vous avez écrit : > Le Friday 01 May 2009 19:46:14 Eric Fetzer, vous avez écrit : > > So to make it work, here's what I had to do.  Seems like an awful lot of > > work to accomplish something simple like this. > > [...] > > You seem to be using ant

Re: Reset BuildNumber

2009-05-02 Thread Francis Galiegue
Le Friday 01 May 2009 19:46:14 Eric Fetzer, vous avez écrit : > So to make it work, here's what I had to do.  Seems like an awful lot of > work to accomplish something simple like this. > [...] You seem to be using ant-contrib, why not go with and ?

Re: Reset BuildNumber

2009-05-01 Thread Eric Fetzer
this.                                                                                                           ${full.buildnumber}   Anyone have an easier way? From: Eric Fetzer To: Ant Users List Sent: Friday, May 1, 2009 11:00:07 AM Subject: Re: Reset BuildNumber OK, yeah, I totally

Re: Reset BuildNumber

2009-05-01 Thread Eric Fetzer
ric Fetzer To: Ant Users List Sent: Friday, May 1, 2009 10:24:18 AM Subject: Re: Reset BuildNumber Yeah, the macrodef was overkill, huh.  How about:                                                           ___

Re: Reset BuildNumber

2009-05-01 Thread Eric Fetzer
Subject: Re: Reset BuildNumber So, here's how I'd do it.  Is there a better way?                                                                                     From: Eric

Re: Reset BuildNumber

2009-05-01 Thread Eric Fetzer
nt: Friday, May 1, 2009 9:31:50 AM Subject: Reset BuildNumber What is the prescribed method of setting properties in a property file?  Specifically, I'm speaking of a file that keeps track of one of the build numbers.  Here's a simple example with what

Reset BuildNumber

2009-05-01 Thread Eric Fetzer
What is the prescribed method of setting properties in a property file?  Specifically, I'm speaking of a file that keeps track of one of the build numbers.  Here's a simple example with what I'd like to do in it: