ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs LoadFile.java
Date Sat, 02 Feb 2002 00:44:57 GMT

----- Original Message -----
From: "Magesh Umasankar" <umagesh@apache.org>
To: "Ant Developers List" <ant-dev@jakarta.apache.org>
Sent: Friday, February 01, 2002 15:02
Subject: Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs
LoadFile.java


> From: <stevel@apache.org>
>
> >   +    protected String stripLineBreaks(String source) {
> >   +        //Linebreaks. What do to on funny IBM mainframes with odd
line
> endings?
> >   +        String linebreaks="\r\n";
>
> Why are you not using System.getProperty("line.separator")
> instead?  Or do you want \r stripped no matter
> what platform the file is under?

exactly. I want to be able to pull things like a file that comes off a <get>
request into a property and then act on it. But I could add that line
separator property too;

-steve


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message