Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 51616 invoked from network); 26 Aug 2005 08:57:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Aug 2005 08:57:50 -0000 Received: (qmail 14832 invoked by uid 500); 26 Aug 2005 08:57:47 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 13924 invoked by uid 500); 26 Aug 2005 08:57:44 -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 13894 invoked by uid 99); 26 Aug 2005 08:57:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2005 01:57:44 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [69.13.85.1] (HELO turquoise.propagation.net) (69.13.85.1) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2005 01:58:00 -0700 Received: from [192.168.0.104] ([85.101.19.81]) by turquoise.propagation.net (8.13.4/8.13.4) with ESMTP id j7Q8vYXP019243 for ; Fri, 26 Aug 2005 03:57:38 -0500 Message-ID: <430ED983.2080500@riskturk.com> Date: Fri, 26 Aug 2005 11:57:39 +0300 From: Taner Diler User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: how can I change value of property in runtime? References: <200508251449.j7PEmtXS021198@pimout6-ext.prodigy.net> In-Reply-To: <200508251449.j7PEmtXS021198@pimout6-ext.prodigy.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: milter-spamc/0.25.321 (localhost [69.13.84.203]); Fri, 26 Aug 2005 03:57:40 -0500 X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO X-Old-Spam-Status: NO, hits=-0.60 required=5.00 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Okay, I solved by using antcontribantcontrib packet. regards Bill Rich wrote: >I think part of the answer to this question is another question - why do you >need to change the value of the property? > >In Ant properties are immutable. The targets are rule based which implies >that all rules have an equal chance of firing based on the conditions at the >time of evaluation. > >Can you design the solution to fit in these guidelines? If not, antcontrib >offers some help by providing some if-then-else like constructs that can be >used. This also includes a variable construct that can change the value at >run time. > >HTH Bill > >-----Original Message----- >From: Taner Diler [mailto:tanerd@riskturk.com] >Sent: Thursday, August 25, 2005 3:51 AM >To: Ant Users List >Subject: how can I change value of property in runtime? > >Hi, > >I have a problem with properties that defined in xml. I'm reading a >property (has "test-0" value) from properties file and I try to change its >value by using ' value="test-1"/>'. > >when I display value of the property by using echo, "test-0" is still being >displayed. How can I change value of the property in runtime? > > > > > > > > > value="${rtdir}\\${credit_importer.name}"/> > > value="${rtdir}\\${credit_context.name}\\WEB-INF\\lib"/> > value="${rtdir}\\${credit_importer.name}\\conf\\configuration.properties"/> > > > path="${rtdir}\\${credit_context.name}\\WEB-INF\\classes" /> > > > > > > > > > > > > > > > > > > > > > > > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional >commands, e-mail: user-help@ant.apache.org > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > >__________ NOD32 1.1201 (20050825) Information __________ > >This message was checked by NOD32 antivirus system. >http://www.nod32.com > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org