ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: directory name?
Date Wed, 21 Aug 2002 18:26:54 GMT
--- Glenn Kidd <GKidd@placeware.com> wrote:
> I apologize for not being clear, I don't want the full path, just the
> name of the current directory. 

Yeah, I got that -- that's why I said to use <basename> to get the last
element of the path. IOW, given a current directory of /home/ant/foo:

  <basename property="cur.dir" file="${user.dir}/>

${cur.dir} will be set to "foo".

Diane



=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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


Mime
View raw message