ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: newbie: how to echo the value of a variable
Date Mon, 21 May 2001 04:07:57 GMT

--- Suu Quan <> wrote:
> RE: newbie: how to echo the value of a variable
>     I still get the litteral ="${env.PATH}" not the value of the
> environment variable        
>   You didn't tell us what OS you are using. On some OS environment
> variables (their names) are *not* case-insensitive, so you may want to
> use "Path" (for example on my W2K). 
>   Have a look at your environment (on WinNT/W2K) using "set P" and you
> will see the "real" name. 
> Sorry, forgot that important piece of information
>         = Windows 2000
> = 1.3
> ant.home = C:\jakarta-ant-1.3
> What is "set P" and how do you use it?

It's a command you can run from a DOS window (but I'm not sure if Win2K
even has any command windows :)  But what he was getting at was that your
"path" variable may well be "Path" instead of "PATH" -- try echo'ing out
${env.Path} instead of ${env.PATH} and see what happens.



Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices

View raw message