So it *does* work for numeric properties. Hmmm... It doesn't look like it can do anything for rolling, but I think I can do that with conditions and the like. I'll give it a shot. Thanks!
-----Original Message----- From: Erik Hatcher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 9:13 AM To: Ant Users List Subject: Re: Versioning Try the <propertyfile> task, and maintain the incrementing fields individually as separate properties, then "glue" them together when you read the property file back in. <propertyfile> supports incrementing dates and numbers (and even appending strings if you are so inclined). Erik ----- Original Message ----- From: "Sayatovic, Brian" <[EMAIL PROTECTED]> To: "Ant Users List (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, May 28, 2002 8:47 AM Subject: Versioning Any tips on handling versioning? I need to maintain a x.x.x.x.ddd versioning scheme. The first four x's have to have a 0-15 range and the final ddd can have any decimal value. With this version information, I need to: - Append it to the jar name - Have it available in Ant for source control labelling - Have a target to increment the version And I want to: - Have it available programatically My attempt this far is to have the values in a property file that Ant can read and also be embedded in the Jar for reading at runtime. But I'm having trouble automatically incrementing the version. I've noticed the "BuildNumbers" tasks, as well as "Property" task. The former only deal with a single number (whereas I have multiple), and the latter appears to only support arithmetic for dates, not decimal values. My goal is to keep it as close to core/optional ant as possible. BUt if there is nothing else, I might look into the scripting tasks. Any auggestions? Regards, Brian. -- I stole this sig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
