Make sure you don't have two instances of ant installed on your box and the
old path comes before the new one.
Mike
- Original Message -
From: "Sharad Jain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 30, 2002 7:46 PM
Subject: RE: acce
Sorry again !!
I just found that my classpath had pervious version of ant.jar before
this latest one, that I just downloaded and so I had all the problems.
Never mind, please ignore this query.
Thanks,
-sjain
**
Oops,
Its a typo. I verified that
). 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
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 t
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
>
Thanks for all your help on the environment variables and classpath. Having
tried the same build file on my home machine - I found that the reason it
wasn't working was because I was trying it on Win98, and it doesn't seem to
pick up the environment variables. There is a reference to the environme
Jim Downing wrote:
> Hi.
> I'm a complete Newbie to Ant. I'm trying to construct a simple ant build file to
>replace the script based approach I was using. Is it possible to access OS
> environment variables (such as JAVA_HOME) as properties in build.xml, or do you have
>to re-specify them
Hello,
Use the property task with the environ attribute :
http://jakarta.apache.org/ant/manual/CoreTasks/property.html
Regards,
Nicolas
-Message d'origine-
De : Jim Downing [mailto:[EMAIL PROTECTED]]
Envoye : jeudi 12 avril 2001 17:17
A : [EMAIL PROTECTED]
Objet : Accessing environment
There are many better examples in the achieves of this newgroup, but here's
what I do.
You don't have to use the string "env". You can call it anything you'd like.
-Original Message-
From: Jim Downing [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:17 AM
To: [EMAIL P
Hi Bill,
You must be using a nightly build or a copy from CVS since this wasn't a
problem with Ant 1.2. A fix was just committed to CVS for this which
works for Win 98 and NT.
However, the fix is simple (which works on both 98 and NT). Edit the line
if "%1"=="" goto doneArgs
and replace
- Original Message -
From: "William Lee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 6:41 PM
Subject: Re: accessing environment variables
> I've used this way to pass in my environment variable for a while. It's
>
Nico Seessle wrote:
>
> - Original Message -
> From: "Johannes Zellner" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, January 27, 2001 8:50 PM
> Subject: accessing environment variables
>
> > Hi,
> >
> > how can I access environment variables ? -- I tried:
> >
> >
I've used this way to pass in my environment variable for a while. It's
just that the "ant" startup script for Windows doesn't work if your
environment has a space in it. For example, if you have -DYOU_VAR="This
is an environment variable" it won't work. I can somewhat fixed it on
Windows NT, b
- Original Message -
From: "Johannes Zellner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 27, 2001 8:50 PM
Subject: accessing environment variables
> Hi,
>
> how can I access environment variables ? -- I tried:
>
>
>
> but this does apparently not work.
In t
14 matches
Mail list logo