ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suu Quan" <sq...@wwc.com>
Subject Re: newbie: how to echo the value of a variable
Date Mon, 21 May 2001 05:07:35 GMT

----- Original Message -----
From: "Diane Holt" <holtdl@yahoo.com>
To: <ant-user@jakarta.apache.org>
Sent: Sunday, May 20, 2001 9:07 PM
Subject: Re: newbie: how to echo the value of a variable


>
> --- Suu Quan <squan@wwc.com> 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
> >
> > os.name         = Windows 2000
> > ant.java.version = 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.

Got it. Win2000 has set P. and the env is "Path".
Diane, you bailed me out again.

This MS windows stuff gets me confused. Sometimes it's case insensitive,
sometimes it's not.


Mime
View raw message