ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weintraub <qazw...@gmail.com>
Subject Re: How to Add a Text Comment to the Beginning of a File (copy, concat)?
Date Tue, 17 Mar 2009 21:16:56 GMT
Do you mind adding the comment first before doing the <concat>?

<echo message="This contains the following files: ${file.list}"
    file="${out.file}"/>

<concat
     destfile="${out.file}"
     append="true"/>

Will this work for you?

On Tue, Mar 17, 2009 at 3:47 PM, Garrett Smith <dhtmlkitchen@gmail.com> wrote:
> I am using <concat> to create a destfile. I would like to provide a
> comment at the top of the destfile that contains a list of the files
> specified in the filelist's |files| attribute.
>
> I saw replaceregexp, but I don't want to replace a token, unless there
> is a token for "beginning of file."
>
> How can I add this comment?
>
> Garrett
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
--
David Weintraub
qazwart@gmail.com

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


Mime
View raw message