ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Append a line with filename for each selected files
Date Thu, 13 Mar 2003 07:28:10 GMT
On Wed, 12 Mar 2003, Chris Chang <chris.chang@cendec.com> wrote:

> I would like append a line (with the corresponding filename) for
> each file in a directory (including sub-directory), any ideas?

Use a <fileset> within a <path> to collect the files, run
<pathconvert> over the path using &#x0A; as separator (you may want a
CR as well if you are on Windows) and <echo> the result to a file.

Stefan

Mime
View raw message