Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 73368 invoked by uid 500); 18 May 2001 21:35:04 -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 73359 invoked from network); 18 May 2001 21:35:04 -0000 Message-ID: From: Aarti Chandnani To: "'ant-user@jakarta.apache.org'" Subject: RE: newbie: how to echo the value of a variable Date: Fri, 18 May 2001 14:33:01 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0DFE2.1D330620" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0DFE2.1D330620 Content-Type: text/plain; charset="iso-8859-1" what the echo should be is : -----Original Message----- From: Suu Quan [mailto:squan@wwc.com] Sent: Friday, May 18, 2001 2:33 PM To: ant-user@jakarta.apache.org Subject: newbie: how to echo the value of a variable Warning: my very first build.xml file. ran into something unknown (to me) already. No reference manual to look at. ${env.PATH} when it ran, it displays "${env.PATH}", not the value of the environment variable PATH. tia ------_=_NextPart_001_01C0DFE2.1D330620 Content-Type: text/html; charset="iso-8859-1" RE: newbie: how to echo the value of a variable

what the echo should be is :

       <echo message="${env.PATH}">
        </echo>

-----Original Message-----
From: Suu Quan [mailto:squan@wwc.com]
Sent: Friday, May 18, 2001 2:33 PM
To: ant-user@jakarta.apache.org
Subject: newbie: how to echo the value of a variable


Warning: my very first build.xml file.
ran into something unknown (to me) already. No reference manual to look at.

<?xml version="1.0"?>
<project name="stp" basedir="." default="startUP">
        <property environment="env"/>
<target name="startUP">
        <echo>
${env.PATH}
        </echo>
</target>
</project>

when it ran, it displays "${env.PATH}", not the value of the environment
variable PATH.

tia

------_=_NextPart_001_01C0DFE2.1D330620--