ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aruna vempaty <>
Subject getting absolute value for parent dir
Date Mon, 11 Aug 2008 11:24:12 GMT

I am trying to get the absolute path of the parent directory in ant as  a variable value

<project name="CreateProviders" default="all" basedir=".">
 <echo >
    pwd =  "${..}"/>
    pwd = Current Dir -- ${pwd}

 this is printing as ..
 pwd =  "${..}"/>
     [echo]     pwd = Current Dir -- ${pwd}

Can some one help me to get the value. Even if i assign 
pwd = "${../basedir}", it is not expanding the value. But it is expanding at run time. I need
to capture this value and assign to some other property


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message