ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: get filename
Date Fri, 18 Aug 2006 19:47:10 GMT
Wasn't this answered earlier this week...using the <basename> target?

-----Original Message-----
>From: "Benjamin H." <elemaillist@googlemail.com>
>Sent: Aug 17, 2006 7:58 AM
>To: user@ant.apache.org
>Subject: get filename
>
>Hi out there,
>
>is it possible to get only the name of a file without the whole path??
>
>This is for path - but only need the filename:
><for param="filename">
>            <path>
>                <fileset dir="reftest" />
>            </path>
>                <sequential><echo>@{filename}</echo></sequential>
>                </for>
>
>The files are in a directory!!
>
>Regards ele


Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

(252) 478-8087 (Home)
(919) 754-4592 (Work)

Chief Architect JPlate       http://sourceforge.net/projects/jplate
Chief Architect JavaPIM    http://sourceforge.net/projects/javapim

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


Mime
View raw message