ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "EJ Ciramella" <>
Subject Can't get env.HOSTNAME
Date Fri, 17 Nov 2006 16:26:55 GMT
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}"/>

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?

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