Thanks for the feedback.

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

[EMAIL PROTECTED]
~/cruisecontrol/projects/webnew-dec2007/netsoft/webnew
$ echo $HOSTNAME
dev02

[EMAIL PROTECTED]
~/cruisecontrol/projects/webnew-dec2007/netsoft/webnew
$ ant hostname
Buildfile: build.xml

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

BUILD SUCCESSFUL
Total time: 5 seconds



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

[EMAIL PROTECTED]
~/cruisecontrol/projects/webnew-dec2007/netsoft/webnew
$ uname -rsv
SunOS 5.10 Generic_125100-10

[EMAIL PROTECTED]
~/cruisecontrol/projects/webnew-dec2007/netsoft/webnew
$ echo $OSTYPE
solaris2.10


Thanks,
Barry


-----Original Message-----
From: Chuck Holzwarth [mailto:[EMAIL PROTECTED] 
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 <[EMAIL PROTECTED]> 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?

Yes.

> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Thank you,
Chuck Holzwarth
(804) 403-3478 (home)
(540) 335-3171 (cell)
       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo!
Search.

-----------------------------------------
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
system.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to