ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Joshua" <daniel.jos...@gridnode.com>
Subject How do I store the parent directory name into a property?
Date Wed, 09 Jul 2003 10:39:41 GMT
Hi all,

Is there a way to store the parent directory name into a property?

This is what I tried:

 <property name="parent.dir.name" location="./.."/>
 <echo message="The parent directory name is ${parent.dir.name}"/>

... but the result was ...

 "The parent directory name is C:/Parent"

... instead of what I wanted, which is ...

 "The parent directory name is Parent"

Any Suggestions?


Regards,
Daniel


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


Mime
View raw message