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
[EMAIL PROTECTED]
(201) 794-2862
Cubby 3330




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

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

Reply via email to