ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject RE: how can i get the exact path from build.xml files?
Date Thu, 19 Feb 2004 22:31:26 GMT
--- "Delpin, Maria" <maria.delpin@documentum.com>
wrote:
> What about if you want ${basedir} but you also want
> the value of the
> directory directly above it? Is there an easy way to
> extract this from
> ${basedir}?
> 


Actually, ${basedir} would only work if you had
<project basedir="." ...>, right?  This should work
(untested):

<dirname file="${ant.file}" property="antfile.dir" />
<dirname file="${antfile.dir}"
         property="antfile.parent.dir" />

-Matt

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message