ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Gentle <j.kenneth.gen...@acm.org>
Subject Re: Localhost name
Date Thu, 12 Dec 2002 18:33:28 GMT
This little trick, which I seem to remember stealing from Steve and Erik, 
seems to work well for Windoze and Solaris...

     <!-- Get properties from the environment... -->
     <property environment="env"/>
     <!-- Use 'immutable property' trick to make it cross-platform. -->
     <property name="env.HOSTNAME" value="${env.COMPUTERNAME}"/>


         Ken

At 11:03 AM 12/12/2002 -0500, you wrote:
>Is there a way, in Ant, without specifying some startup variable or hard
>coding a property, to get the machine name for localhost that the buld
>script is running on?
>
>Luis Andrei Cobo
>lcobo@cover-all.com
>(201) 794-2862
>Cubby 3330
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message