Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 9227 invoked from network); 22 Jul 2002 19:15:52 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Jul 2002 19:15:52 -0000 Received: (qmail 21490 invoked by uid 97); 22 Jul 2002 19:16:04 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 21470 invoked by uid 97); 22 Jul 2002 19:16:04 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 21457 invoked by uid 98); 22 Jul 2002 19:16:03 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <20020722191545.50970.qmail@web13403.mail.yahoo.com> Date: Mon, 22 Jul 2002 12:15:45 -0700 (PDT) From: Diane Holt Subject: Re: Auto-increment a x.x.x.x build number? To: Ant Users List In-Reply-To: <59007C908447154E9D9432A651876F371FEEB9@bmmail.buymedia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --- "Duffey, Kevin" wrote: > Just got Ant 1.5. I am curious if it is possible to update a build > number that comes in the form of x.x.x.x I want to update the last .x > until it reachs either 99 or 255. Once it gets there it should auto > increment the next to last .x and reset the last .x to 0. And so on > through the 4 different numbers. Is this possible? Or does the new > BuildNumber feature only increment a single value? I can't find anything > in the API docs that show any examples of how to do this. You couldn't use , but you could probably do it with a combination of and , if you have a separate property for (at least) the last and next-to-last "x". What determines whether the cut-off is 99 or 255? And does the next-to-last "x" have an upper limit, which then affects the next-to-next-to-last, etc.? Diane ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: