Hi,
Here's how I do it.
In your build.bat (or build.sh) script that wraps your build, do something
like
set PROJECT_HOME=C:\foo\main
call ant -Dbasedir=%PROJECT_HOME% -buildfile .....
More info on pre-defined props is in the Using Ant section of the manual.
Bye,
Les
> -----Original Message-----
> From: Francisco Franco [mailto:[EMAIL PROTECTED]]
> Sent: 20 April 2001 00:53
> To: '[EMAIL PROTECTED]'
> Subject: Re: basedir attribute from project tag
>
>
> I need to assign a value to my basedir attribute in my
> project tag using a
> reference to an environmental variable. I tried including a
> property task
> before my project tag but this did not work. How can this be
> done and does
> anyone have some example code?
>
> Thanks,
> Francisco
>