ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: Can I access ant's basedir value from a Task?
Date Fri, 20 Jun 2003 17:29:16 GMT
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


Mime
View raw message