Have you tried it out? I think that should work. Not with writing the literals \n\r, but having the line breaks. I am not sure, but may setting <echo encoding> would help.
But if you want to create an ini file (as other configuration files) there is a better way: use templates and fill in the value while copying. http://ant.apache.org/manual/CoreTypes/filterset.html http://ant.apache.org/manual/CoreTypes/filterchain.html Jan >-----Ursprüngliche Nachricht----- >Von: Mohit Anchlia [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 15. Oktober 2008 17:42 >An: Ant Users List >Betreff: Re: Write to a new file > >This is like 'ini' file that's needed to configure one of our >monitoring tool. Does escape sequences like \n \r work too? > >On Wed, Oct 15, 2008 at 8:34 AM, <[EMAIL PROTECTED]> wrote: >> <echo file> >> <echo file append> >> <concat> >> >> But the basic question is: what kind of file do you want to have? >> >> >> Jan >> >>>-----Ursprüngliche Nachricht----- >>>Von: Mohit Anchlia [mailto:[EMAIL PROTECTED] >>>Gesendet: Mittwoch, 15. Oktober 2008 17:31 >>>An: Ant Users List >>>Betreff: Write to a new file >>> >>>Is there a way in ant to create a new file or write to existing file? >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
