Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 56684 invoked from network); 9 Oct 2000 19:18:01 -0000 Received: from bravo.interbind.com (HELO ibexc02.interbind.com) (160.79.178.130) by locus.apache.org with SMTP; 9 Oct 2000 19:18:01 -0000 Received: by IBEXC02 with Internet Mail Service (5.5.2650.21) id ; Mon, 9 Oct 2000 15:19:05 -0400 Message-ID: <27B90006C556D4119D5700508BDC9DDC112A48@IBEXC02> From: Daniel Rosner To: "'ant-user@jakarta.apache.org'" Subject: Difficulty with filtering and javac task. Date: Mon, 9 Oct 2000 15:19:05 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Specifically I have questions below about substitution to make a version number. My project has a Version class which holds a set of public final static String's that I would like to replace at compile time. So in my Version.java I have, for example, /** current build number */ public final static String build = "@BUILD@"; When I use the ant javac task, the substitution I expected is not happening. I am trying to follow what I think I should do as indicated in the c:/ant/docs/index.html file... which is something like this: Question: That index.html file doesn't say if I should do "on" or "true"- am I doing the right thing? Question: When I look in the source of ...\taskdefs\Javac.java I can't see where it is doing the substitution. Is this supported? Am I doing the right thing? As an aside, is this an appropriate forum for discussion about build 'best practices'? I'm wondering how you folks manage the build-release process, of which my questions are just a part. With regard to this specific problem, any examples of how you folks are doing version # substitution/management would be greatly appreciated. Thanks -D