ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephane Bailliez <sbaill...@imediation.com>
Subject RE: cvs commit: jakarta-ant/src/main/org/apache/tools/ant Default Logger.java
Date Tue, 11 Dec 2001 13:25:57 GMT
> -----Original Message-----
> From: bodewig@apache.org [mailto:bodewig@apache.org]

[...]
>   +    /**
>         * Print a line to the given stream and flush the 
> stream right after that.
>         */
>   -    private void printlnAndFlush(PrintStream p, String line) {
>   +    protected void printlnAndFlush(PrintStream p, String line) {
>            p.println(line);
>            p.flush();
>        }

If the PrintStream is set to autoflush you should not need this, it will be
flushed for each newline.

new PrintStream(oldstream, true);

Stephane

--
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