Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 14337 invoked from network); 10 Feb 2006 16:12:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Feb 2006 16:12:04 -0000 Received: (qmail 76135 invoked by uid 500); 10 Feb 2006 16:11:59 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 75980 invoked by uid 500); 10 Feb 2006 16:11:58 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 75943 invoked by uid 99); 10 Feb 2006 16:11:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2006 08:11:58 -0800 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [194.139.33.69] (HELO dhuumrelay0.dtm.ops.eu.uu.net) (194.139.33.69) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2006 08:11:57 -0800 Received: from charly (dhuumprxy0.dtm.ops.eu.uu.net [194.139.33.74]) by dhuumrelay0.dtm.ops.eu.uu.net (8.13.4/8.13.4) with ESMTP id k1AGBXSY021271 for ; Fri, 10 Feb 2006 16:11:34 GMT X-Authenticated-As: none To: "Ant Users List" Cc: Subject: Antwort: Re: Displaying the value in a Java class? X-Mailer: Lotus Notes Version 5.0 (Intl) 14. April 1999 Message-ID: From: dvholten@computer.org Date: Fri, 10 Feb 2006 16:10:32 GMT X-Priority: 3 (Normal) X-MIMETrack: Serialize by Im Leerlauf on dvh/DvH(Version 5.0 (Intl) | 14. April 1999) at 10.02.2006 17:10:54, Serialize complete at 10.02.2006 17:10:54 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_alternative 0058DB11C1257111_=" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=_alternative 0058DB11C1257111_= Content-Type: text/plain; charset="us-ascii" Hello, i think, what you try to do doesnt work this way. The BCEL - thing reads the class-file, knows about the internal layout and can find out things about it. One of these is the constant - pool. Strings, doubles, long constants are put there by the compiler your public final static xxxx is not included there. It is a (class-)member, which contains a reference to some other object (probably in another class). This reference is resolved when the class is loaded (simplfied). So, i would be surprised if you find what you are looking for in your class-file. I would go another way: because the class-file is available for ant, why not write a simple task to instantiate your class, query the property and convert the result to a string. Some template for a user-defined task should be available somewhere. HTH dvholten --=_alternative 0058DB11C1257111_=--