From dev-return-77980-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Fri Jan 26 05:12:59 2007 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 52449 invoked from network); 26 Jan 2007 05:12:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jan 2007 05:12:54 -0000 Received: (qmail 31881 invoked by uid 500); 26 Jan 2007 05:12:58 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 31778 invoked by uid 500); 26 Jan 2007 05:12:57 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 31735 invoked by uid 99); 26 Jan 2007 05:12:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jan 2007 21:12:57 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ravi.aroy@gmail.com designates 64.233.162.232 as permitted sender) Received: from [64.233.162.232] (HELO nz-out-0506.google.com) (64.233.162.232) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jan 2007 21:12:45 -0800 Received: by nz-out-0506.google.com with SMTP id j2so564452nzf for ; Thu, 25 Jan 2007 21:12:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:reply-to:from:to:subject:date:message-id:mime-version:content-type:x-priority:x-msmail-priority:x-mailer:x-mimeole:in-reply-to:importance; b=KXdmvBav4YO9E6fWAkySKBWtjGFERit5kzY9TzTHxwo4QWQ8Rcl2y8CSCRI+B96EFW6etcYKm4+nGK2fwFzmN0qTHAK7RRdYcI87MDqYUPhQNs0XstG3o8gO8VcxTTaqj4zEa0R2P6RKzmoi2Q5nQmIiGDnN9M4dbu06YJt+2jA= Received: by 10.65.211.13 with SMTP id n13mr4292952qbq.1169788344972; Thu, 25 Jan 2007 21:12:24 -0800 (PST) Received: from noicltjks ( [125.23.110.68]) by mx.google.com with ESMTP id q19sm3810976qbq.2007.01.25.21.12.19; Thu, 25 Jan 2007 21:12:23 -0800 (PST) Reply-To: From: "Ravi Roy" To: Subject: RE: Is it possible to get a value of getter method from a Java class to build.xml ? Date: Fri, 26 Jan 2007 10:42:19 +0530 Message-ID: <003d01c74108$90bcbae0$1701a8c0@noicltjks> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_003E_01C74136.AA74F6E0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-Reply-To: <246bcc580701250310y3fa72a13qee439c85c51f1a71@mail.gmail.com> Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_003E_01C74136.AA74F6E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I was able to solve this, thought to post it to help newbies like me :-) =20 Project project =3D getProject(); String propertyValue =3D valuetobeassigned; project.setProperty(property, = propertyValue); =20 and refer this property=3D"identifier" in the build.xml. =20 Thanks. =20 Regards, Ravi. =20 =20 -----Original Message----- From: Ravi Roy [mailto:ravi.aroy@gmail.com]=20 Sent: Thursday, January 25, 2007 4:40 PM To: dev@ant.apache.org Subject: Is it possible to get a value of getter method from a Java = class to build.xml ? =20 Hi, =20 I am writing a Ant Task for my solution. My question is : =20 - How can I refer a getter method's (return value) into build.xml ?=20 =20 =20 For Example : =20 =20 I have provided the setter methods for these -- attribute1 and = attribute2 in my class, and these two attributes are written to a properity file. =20 How can I later refer these values written to property file in my = build.xml file ? Is it possible ? Sorry, if this sounds stupid, becuase I am new = to Ant Tasks Development. =20 Thanks for pointers! =20 Regards, Ravi. =20 =20 =20 =20 =20 ------=_NextPart_000_003E_01C74136.AA74F6E0--