Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 44517 invoked by uid 500); 30 May 2001 03:34:47 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 44457 invoked from network); 30 May 2001 03:34:46 -0000 Message-Id: <3.0.6.32.20010530124851.008adca0@mail.alphalink.com.au> X-Sender: gdonald@mail.alphalink.com.au X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Wed, 30 May 2001 12:48:51 +1000 To: ant-user@jakarta.apache.org From: Peter Donald Subject: Re: Property use in non-attibutes Cc: ant-user@jakarta.apache.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N At 03:30 PM 5/29/01 +0100, ROBERT.WORTH@chase.com wrote: >Is there any way to make property references work in a non-attribute way. >In the following task I have the command.text property which comes out fine >in the echo task since it is part of the message attribute of echo. But >further down in the telnet task it is used again as the value of a write >element. Trouble is it comes out as "${command.text}" and not "ls". Help >would be appreciated. I wanted to change this ages ago but currently it is not possible. You may be able to make changes to local ant convince everyone that it is a good idea of content of elements also has ${}'s expanded. >From Memory you need to go to ProjectHelper.addText() and add an extra line before it calls introspection helper to do something like. String newValue = replaceProperties( project, oldValue ); good luck. Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------*