Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 10125 invoked from network); 12 Jun 2002 17:36:41 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Jun 2002 17:36:41 -0000 Received: (qmail 5375 invoked by uid 97); 12 Jun 2002 17:36:43 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 5348 invoked by uid 97); 12 Jun 2002 17:36:42 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 5308 invoked by uid 50); 12 Jun 2002 17:36:41 -0000 Date: 12 Jun 2002 17:36:41 -0000 Message-ID: <20020612173641.5306.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: ant-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 9784] - BuildNumber task: make more extendable... X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9784 BuildNumber task: make more extendable... ------- Additional Comments From nick@chalko.com 2002-06-12 17:36 ------- PropertyFile already allows finner control. This is a good solution for handling Properties. I use PropertyFile with a custiom task to build a a static class that has what you want. I have an task at https://sourceforge.net/projects/chalktools/ It looks like It generates this /* $Header: C:\workspace\JavaDevCert\src\com\flybynight\FlyByNightBuildVersion.java $ */ package com.flybynight; /** * A autogenerated BuiltVersion class. * @author com.chalko.tools.ant.BuildVersionGenerator Revision: 1.8 * @version Fri Jun 07 02:48:37 PDT 2002 * */ public class FlyByNightBuildVersion extends com.chalko.tools.rt.BuildVersion { public static final FlyByNightBuildVersion INSTANCE = new FlyByNightBuildVersion(); private FlyByNightBuildVersion() { name="FlyByNight"; date= new java.util.Date(1023443317875l); //Fri Jun 07 02:48:37 PDT 2002 tag="development"; major="0"; minor="0"; increment="0"; host="baby/192.168.57.77"; user="Owner"; debug=true; } public final static FlyByNightBuildVersion getInstance( ) { return INSTANCE;} } The parent classes has getter for the fields and convinece methods for standard forms ( major.minor.increment) etc. If there is interest I will relicense it, and donate it. -- To unsubscribe, e-mail: For additional commands, e-mail: