Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 51898 invoked from network); 19 Dec 2006 10:58:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Dec 2006 10:58:40 -0000 Received: (qmail 29283 invoked by uid 500); 19 Dec 2006 10:58:43 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 28960 invoked by uid 500); 19 Dec 2006 10:58:42 -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 28949 invoked by uid 99); 19 Dec 2006 10:58:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 02:58:42 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of antoine@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 19 Dec 2006 02:58:32 -0800 Received: (qmail invoked by alias); 19 Dec 2006 10:58:10 -0000 Received: from 207-237-198-253.c3-0.nyr-ubr2.nyr.ny.cable.rcn.com (EHLO [192.168.11.15]) [207.237.198.253] by mail.gmx.net (mp045) with SMTP; 19 Dec 2006 11:58:10 +0100 X-Authenticated: #22961642 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7B651534-C0DF-4944-8954-9EB7F27F93EF@gmx.de> Content-Transfer-Encoding: 7bit From: Antoine Levy-Lambert Subject: Re: set a property in a .properties file Date: Tue, 19 Dec 2006 05:58:07 -0500 To: "Ant Users List" X-Mailer: Apple Mail (2.752.3) X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, there are a lots of ways to write to a property file in ant. Look at the following : somekey=somevalue there is also the propertyfile task which can do some limited arithmetics on properties (in the Optional Tasks section of the manual). there might also be the option of using the task with a nested filterchain (see explanations about filterchains under Concepts and Types). Regards, Antoine On Dec 19, 2006, at 5:44 AM, jm wrote: > hi, > > I have been looking for a way to set a property in a .properties file > via ant. Could not find any easy way...somebody knows a way to do it > or a external task or something? > > I know about the stuff, but I am trying to change the > property without knowing the value it had before, that is, I cannot > assume it is 'aproperty=@replaceme@' > > thanks, > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org