ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EJ Ciramella <ecirame...@archivas.com>
Subject Re: How to insert new line character in a string
Date Mon, 22 Aug 2005 19:19:43 GMT
You could also try ${line.separator}

See:
http://ant.apache.org/manual/CoreTasks/property.html
http://ant.apache.org/manual/using.html#built-in-props
http://java.sun.com/j2se/1.3/docs/api/java/lang/ 
System.html#getProperties()

On Aug 22, 2005, at 1:10 PM, Andrew Goktepe wrote:

> On second glance, it looks like that only applies to the fixlastline
> attribute.
>  If you can't find any other solution, you could try the ugly way -  
> put
> &#013;&#010; at the end of each line. I haven't tested this either.
>
>  On 8/22/05, Andrew Goktepe <andrewgoktepe@gmail.com> wrote:
>
>>
>> Try setting eol="crlf":
>>  http://ant.apache.org/manual/CoreTasks/concat.html
>>  -Andrew
>>
>>  On 8/22/05, Karunakar Chatla <karunakarc@cybage.com> wrote:
>>
>>>
>>>
>>> Hi,
>>>
>>> I have following script where I am writing some text to file.
>>> I wanted each of the lines in seperate line in the file. It is  
>>> writing
>>> to the file but when I open the file(in windows) it shows me a  
>>> special
>>> character( a sqare).
>>> How can we avoid this?
>>>
>>> <concat destfile="${soft.labels.path}\${soft-lable-win}">
>>> element * CHECKEDOUT
>>> time ${timerule}
>>> ${load.rules}
>>> </concat>
>>>
>>> Thanks,
>>> Karunakar Chatla
>>>
>>>
>>>
>>>
>>
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message