ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Holzwarth <>
Subject Re: environment attribute
Date Fri, 04 Jan 2008 21:02:31 GMT
I just tried this on a Solaris VM on my desktop and HOSTNAME is not defined by default. You
may want to issue "export HOSTNAME=`hostname`" in your .profile. Change this as appropriate
for your shell.

Dominique Devienne <> wrote: On 1/4/08, Barry Pape  wrote:
> Hopefully this is a quick and easy question.  Is the environment
> attribute of the property task supported on Solaris?


> I've been trying
> to use ${env.HOSTNAME} but it doesn't appear to resolve.

Most likely because you have no such env. var. in your current shell.
Verify that using echo $HOSTNAME in the same shell you run Ant from.

Available env. vars varies by OS and shell usually. --DD

To unsubscribe, e-mail:
For additional commands, e-mail:

Thank you,
Chuck Holzwarth
(804) 403-3478 (home)
(540) 335-3171 (cell)
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message