ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Spalding <georgespald...@yahoo.com>
Subject Re: Localhost name and other uses
Date Fri, 13 Dec 2002 11:50:05 GMT
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 <steve_l@iseran.com> 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" <vilya.harvey@digitalsteps.com>
> To: "Ant Users List" <ant-user@jakarta.apache.org>
> 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
> > vilya.harvey@digitalsteps.com                 / 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" <lcobo@cover-all.com>
> > To: "Ant Users List (E-mail)" <ant-user@jakarta.apache.org>
> > 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
> > > 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>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:ant-user-help@jakarta.apache.org>
>  

=====
-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-
George Spalding
Private:      georgespalding@yahoo.com
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message