Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 82919 invoked from network); 30 Apr 2004 12:48:34 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 30 Apr 2004 12:48:34 -0000 Received: (qmail 59494 invoked by uid 500); 30 Apr 2004 12:48:20 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 59461 invoked by uid 500); 30 Apr 2004 12:48:20 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 59444 invoked from network); 30 Apr 2004 12:48:19 -0000 Received: from unknown (HELO ns4.gdgsc.com) (192.160.62.68) by daedalus.apache.org with SMTP; 30 Apr 2004 12:48:19 -0000 Received: from NDHMC4SXCH.gdc4s.com (ndhmc4sxch03.gdc4s.com [155.95.153.221]) by newman.gdgsc.com (PMDF V6.2 #30949) with ESMTP id <0HWZ00A6GHM0HJ@newman.gdgsc.com> for user@ant.apache.org; Fri, 30 Apr 2004 08:34:48 -0400 (EDT) Received: from ndhmc4sxch01.gdc4s.com ([155.95.153.207]) by NDHMC4SXCH.gdc4s.com with Microsoft SMTPSVC(6.0.3790.0); Fri, 30 Apr 2004 08:40:53 -0400 Received: from TNTNC4SXCH.gdc4s.com ([157.176.173.14]) by ndhmc4sxch01.gdc4s.com with Microsoft SMTPSVC(6.0.3790.0); Fri, 30 Apr 2004 08:40:57 -0400 Date: Fri, 30 Apr 2004 08:41:06 -0400 From: "Daniels, Doug" Subject: RE: Assign new value to an existing property To: Ant Users List Message-id: <8C431EC125E9924186D8BB91DC1152B7B3430A@TNTNC4SXCH.gdc4s.com> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Thread-Topic: Assign new value to an existing property Thread-Index: AcQuribm5gfs6lkMTe2KcntLPi9nQAAAbnCg Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 30 Apr 2004 12:40:57.0835 (UTC) FILETIME=[62B4BBB0:01C42EB0] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N You can try using the ant-contrib(http://ant-contrib.sourceforge.net/) = task: "The Variable task provides a mutable property to Ant and works much = like variable assignment in Java. This task is similar to the standard = Ant Property task, except that THESE PROPERTIES ARE MUTABLE. While this = goes against the standard Ant use of properties, occasionally it is = useful to be able to change a property value within the build. In = general, use of this task is DISCOURAGED, and the standard Ant Property = should be used if possible. Having said that, in real life I use this a = lot."=20 (http://ant-contrib.sourceforge.net/tasks/variable_task.html). To use the ant-contrib tasks download the ant-contrib jar, then in your = build file place this at the top: With the location pointing to where you downloaded your jar of course. A = million thanks to the ant-contrib people for producing such useful = tasks. I've always been kind of confused why most of the tasks aren't = included in the regular ant distribution, I guess its that whole = minimalist approach and you can always just download these tasks. ~ Doug Daniels -----Original Message----- From: Paul Martel [mailto:pmartel@taleo.com] Sent: Friday, April 30, 2004 8:25 AM To: user@ant.apache.org Subject: Assign new value to an existing property Hi ! I defined a property X with a value. Later in my Ant script, I would = like to change the value of X. Is it the kind of thing that I can do = with Ant ? At first glance, it seems not possible with a test that I = have done. Thank you --------------------------------------------------------------------- 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