ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Delpin, Maria" <maria.del...@documentum.com>
Subject RE: how can i get the exact path from build.xml files?
Date Thu, 19 Feb 2004 22:38:29 GMT
Thank you! That worked.
-maria

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com] 
Sent: Thursday, February 19, 2004 5:31 PM
To: Ant Users List
Subject: RE: how can i get the exact path from build.xml files?

--- "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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message