ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: Can't get env.HOSTNAME
Date Fri, 17 Nov 2006 17:09:31 GMT
On 11/17/06, EJ Ciramella <ejciramella@upromise.com> wrote:
> Yeah, it's as if ant is ignoring my local config/shell.
>
> Looking at the ant install, it looks like some sort of boogered rpm install (since I
can't do the installs up here myself).
>

Try to install ant1.7.0rc1, this has a change that
if the  ANT_HOME env variable is set, it will *not* dot include
/etc/ant.conf.

Peter

>
>
> -----Original Message-----
> From: Scot P. Floess [mailto:floess@mindspring.com]
> Sent: Friday, November 17, 2006 11:55 AM
> To: Ant Users List
> Subject: Re: Can't get env.HOSTNAME
>
> BTW, I tried this using Fedora Core 6 and RHEL 4 (it worked for me)...
>
>
>
> EJ Ciramella wrote:
> > Not to mention echo $HOSTNAME
> >
> > -bash-3.00$ echo $HOSTNAME
> > crimson-gecko.corp.upromise.com
> >
> > . .  .
> >
> > -----Original Message-----
> > From: EJ Ciramella [mailto:ejciramella@upromise.com]
> > Sent: Friday, November 17, 2006 11:42 AM
> > To: Ant Users List
> > Subject: RE: Can't get env.HOSTNAME
> >
> > Typing set/export shows them nicely.
> >
> > -----Original Message-----
> > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> > Sent: Friday, November 17, 2006 11:34 AM
> > To: user@ant.apache.org
> > Subject: AW: Can't get env.HOSTNAME
> >
> > Are the environment variables really set? Please try from command line.
> >
> > Jan
> >
> >
> >> -----Urspr√ľngliche Nachricht-----
> >> Von: EJ Ciramella [mailto:ejciramella@upromise.com]
> >> Gesendet: Freitag, 17. November 2006 17:27
> >> An: user@ant.apache.org
> >> Betreff: Can't get env.HOSTNAME
> >>
> >> Hey guys, I'm trying to do something really simple - echo the
> >> machine name of the machine running this particular build script.
> >>
> >> Crazy thing is, I've seen this work well a billion times over,
> >> now it's not working...
> >>
> >> Here's what I have:
> >>
> >> <target name="get-env">
> >>   <property environment="env"/>
> >>   <echo message="${env.HOSTNAME}"/>  <-- since it's a unix
> >> box, this should work
> >>   <echo message="${env.NUMBER_OF_PROCESSORS}"/>
> >>   <echo message="${env.ANT_HOME}"/>
> >> </target>
> >>
> >> I have the others in there just to see if they work, and the
> >> only one that actuall echos out anything is the ant home one.
> >>
> >> What gives?
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
>
> --
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC  27549
>
> 252-478-8087 (Home)
> 919-754-4592 (Work)
>
> Chief Architect JPlate  http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message