ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Youngquist" <ew...@hotmail.com>
Subject Re: Can I access ant's basedir value from a Task?
Date Fri, 20 Jun 2003 17:31:37 GMT
Thanks that worked.

Eric

----- Original Message -----
From: "peter reilly" <peter.reilly@corvil.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Friday, June 20, 2003 1:29 PM
Subject: Re: Can I access ant's basedir value from a Task?


> It is a property - basedir.
>
> getProject().getProperty("basedir")
>
> Peter
>
> On Fri, 2003-06-20 at 18:23, Eric Youngquist wrote:
> > I was wondering if I could access ant's basedir value from within a task
without physically passing the value in as an attribute.
> >
> > Here is the project line from my build.xml:
> >
> >     <project name="mytask" default="main" basedir="/my/taskdir">
> >
> > I would like to access ant's basedir value from inside a task.  I have
done some news group searches and flipped through the book Java Dev with
Ant, but I have not found anything.
> >
> > Thanks,
> > Eric
>
>
> ---------------------------------------------------------------------
> 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