ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Inserting text at start of file
Date Wed, 02 Apr 2003 08:05:28 GMT
On Wed, 2 Apr 2003, North Alex <Alex.North@tapiola.fi> wrote:

> I just can't seem to find any simple way of doing it.

<concat>?

> I have come up with a complicated-well-over-the-top way of copying
> files and using the concat task.

Why copy?

<concat destfile="your-dest-file">Your Text
</concat>
<concat destfile="your-dest-file" append="true">
  <fileset file="the-file-to-prepend-to"/>
</concat>

should work.

CVS HEAD has a new nested <header> element that would enable a single
pass.

Stefan

Mime
View raw message