ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: How do I store the parent directory name into a property?
Date Wed, 09 Jul 2003 10:43:52 GMT
<basename property="parent.dir.name" file="./.."/>


Jan

> -----Original Message-----
> From: Daniel Joshua [mailto:daniel.joshua@gridnode.com]
> Sent: Wednesday, July 09, 2003 12:40 PM
> To: 'Ant Users List'
> Subject: How do I store the parent directory name into a property?
> 
> 
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message