ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barry Pape" <>
Subject RE: environment attribute
Date Sat, 05 Jan 2008 00:04:10 GMT
Thanks for the feedback.

I verified that the HOSTNAME variable is set, but it doesn't get
resolved during the ant build.

$ echo $HOSTNAME

$ ant hostname
Buildfile: build.xml

     [echo] Using ${env.HOSTNAME} for host name

Total time: 5 seconds

Not sure if any of this information helps, but here:

$ uname -rsv
SunOS 5.10 Generic_125100-10

$ echo $OSTYPE


-----Original Message-----
From: Chuck Holzwarth [] 
Sent: Friday, January 04, 2008 3:03 PM
To: Ant Users List
Subject: Re: environment attribute

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
> 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!

Confidentiality Notice!
This electronic transmission and any attached documents or other
writings are confidential and are for the sole use of the intended
recipient(s) identified above. This message may contain information
that is privileged, confidential or otherwise protected from
disclosure under applicable law. If the receiver of this
information is not the intended recipient, or the employee, or
agent responsible for delivering the information to the intended
recipient, you are hereby notified that any use, reading,
dissemination, distribution, copying or storage of this information
is strictly prohibited. If you have received this information in
error, please notify the sender by return email and delete the
electronic transmission, including all attachments from your

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

View raw message