ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vilya Harvey" <>
Subject Re: Localhost name
Date Thu, 12 Dec 2002 16:37:31 GMT
Where I work, we couldn't find a way to do this. So we implemented our own
task to do it for us. The implementation itself was trivial (just call
InetAddress.getLocalHost().getHostName() in the execute() method and store
it in a user-specified property), but I can see about making it available if
you (or anyone else) is interested.

Vilya Harvey, Consultant                 / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457       


This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

----- Original Message -----
From: "Luis Andrei Cobo" <>
To: "Ant Users List (E-mail)" <>
Sent: Thursday, December 12, 2002 4:03 PM
Subject: Localhost name

> 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
> (201) 794-2862
> Cubby 3330
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message