I think you also had a <hostname> task in there. Thats the one I adpoted.
It's actually quite convenient to have props that differ from host to host and operating sys in prop-files named ant.${the.hostname}.properties ant.${the.os}.properties in init just <propertyfile/> them into ant. --- Steve Loughran <[EMAIL PROTECTED]> wrote: > there is also a <localhost> task in ant's CVS, under > proposal/sandbox/httptasks; we should move it in to the main source > for > 1.6...I was also thinking of adding an <nslookup> to set a property > with an > ipaddr/hostname if the target was lookup-able > > ----- Original Message ----- > From: "Vilya Harvey" <[EMAIL PROTECTED]> > To: "Ant Users List" <[EMAIL PROTECTED]> > Sent: Thursday, December 12, 2002 08:37 > Subject: Re: Localhost name > > > > 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. > > > > Vil. > > -- > > Vilya Harvey, Consultant > > [EMAIL PROTECTED] / digital steps / > > (W) +44 (0)1483 469 480 > > (M) +44 (0)7816 678 457 > http://www.digitalsteps.com/ > > > > --Disclaimer-- > > > > 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" <[EMAIL PROTECTED]> > > To: "Ant Users List (E-mail)" <[EMAIL PROTECTED]> > > 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 > > > [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]> > > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > ===== -\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/- George Spalding Private: [EMAIL PROTECTED] Phone: Mobile: +46 701 849 507 Home: +46 8 21 36 59 -/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-/|\-\|/- __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>