Sharad,

An old version of the Ant classes is being picked up.
You will need to check two things.

1. Make sure ANT_HOME is pointing to the real ANT_HOME
2. Make sure your classpath does not contain an old ant.jar, or another jar
which provides the old ant version (if someone bundled it). Probably try a
clean classpath

Conor


> -----Original Message-----
> From: Sharad Jain [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 1 May 2002 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: RE: accessing environment variables
>
>
> Oops,
> Its a typo. I verified that I am using "environment".
>
> Although, to my surprise, the version of ant is 1.2.
> I tried downloading latest 1.4.1 from apache website. But even
> the 1.4.1 binary says version 1.2 when I try "ant -version" !!
> I tried downloading nightly build for 1.5alpha but still the same.
> Am I missing something here ... ?
>
> Thanks for help,
> -sjain
>
>
> ******************************************************
> spelling?
>
> Are you sure you are spelling it "environment" and not "enviromnent"
>
> Not clear from your email. Also check the version reported by Ant when
> using -verbose flag.
>
> Conor
>
>
> > -----Original Message-----
> > From: Sharad Jain [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, 30 April 2002 2:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: accessing environment variables
> >
> >
> > I am using ant-1.4.1.
> > When I try,
> >
> > <project ....>
> >     <property enviromnent="env"/>
> > </project>
> >
> > why does it complain, <property> doesn't support
> > the "environment" attribute ?
> >
> > Any idea ?
> >
> > -sjain
> >
>
>


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

Reply via email to