ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: Can't get env.HOSTNAME
Date Fri, 17 Nov 2006 18:57:51 GMT
Rob:

That's a great question :)  I hadn't considered that.  However, running 
it as you list - sure enough does the "wrong" thing ;)

Anderson, Rob (Global Trade) wrote:
> Are you running this locally or remotely. In other words are you logged
> in to crimson-gecko.corp.upromise.com when you run "ant get-env" or are
> you doing something like this...
>
> ssh crimson-gecko.corp.upromise.com "ant get-env"
>
> -Rob A
>
>   
>> -----Original Message-----
>> From: EJ Ciramella [mailto:ejciramella@upromise.com] 
>> Sent: Friday, November 17, 2006 8:27 AM
>> To: user@ant.apache.org
>> Subject: Can't get env.HOSTNAME
>>
>> Hey guys, I'm trying to do something really simple - echo the 
>> machine name of the machine running this particular build script.
>>  
>> Crazy thing is, I've seen this work well a billion times 
>> over, now it's not working...
>>  
>> Here's what I have:
>>  
>> <target name="get-env">
>>    <property environment="env"/>
>>    <echo message="${env.HOSTNAME}"/>  <-- since it's a unix 
>> box, this should work
>>    <echo message="${env.NUMBER_OF_PROCESSORS}"/>
>>    <echo message="${env.ANT_HOME}"/>
>> </target>
>>
>> I have the others in there just to see if they work, and the 
>> only one that actuall echos out anything is the ant home one.
>>  
>> What gives?
>>
>>     
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>   

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message