Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 76424 invoked from network); 2 Sep 2000 10:53:44 -0000 Received: from natmail2.webmailer.de (HELO post.webmailer.de) (192.67.198.65) by locus.apache.org with SMTP; 2 Sep 2000 10:53:44 -0000 Received: from ns2000 (pec-100-178.tnt7.hh2.uunet.de [149.225.100.178]) by post.webmailer.de (8.9.3/8.8.7) with SMTP id MAA24606 for ; Sat, 2 Sep 2000 12:53:42 +0200 (MET DST) Message-ID: <006801c014cc$382e5ba0$5812e195@ns2000> From: "Nico Seessle" To: Subject: [PATCH] DefaultLogger.java using wrong EOL on Windows Date: Sat, 2 Sep 2000 12:54:49 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0065_01C014DC.FAC5C6C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_0065_01C014DC.FAC5C6C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit ------=_NextPart_000_0065_01C014DC.FAC5C6C0 Content-Type: application/octet-stream; name="DefaultLogger.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="DefaultLogger.patch" Index: DefaultLogger.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: = /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/DefaultLogger.j= ava,v retrieving revision 1.5 diff -u -r1.5 DefaultLogger.java --- DefaultLogger.java 2000/07/25 13:15:29 1.5 +++ DefaultLogger.java 2000/09/02 10:43:16 @@ -67,6 +67,8 @@ private PrintStream out; private int msgOutputLevel; private long startTime =3D System.currentTimeMillis(); +=09 + private static String lSep =3D = System.getProperty("line.separator"); =20 private boolean emacsMode =3D false; =20 @@ -115,10 +117,10 @@ Throwable error =3D event.getException(); =20 if (error =3D=3D null) { - out.println("\nBUILD SUCCESSFUL"); + out.println(lSep + "BUILD SUCCESSFUL"); } else { - out.println("\nBUILD FAILED\n"); + out.println(lSep + "BUILD FAILED" + lSep); =20 if (error instanceof BuildException) { out.println(error.toString()); @@ -133,12 +135,12 @@ } } =20 - out.println("\nTotal time: " + = formatTime(System.currentTimeMillis() - startTime)); + out.println(lSep + "Total time: " + = formatTime(System.currentTimeMillis() - startTime)); } =20 public void targetStarted(BuildEvent event) { if (msgOutputLevel <=3D Project.MSG_INFO) { - out.println("\n" + event.getTarget().getName() + ":"); + out.println(lSep + event.getTarget().getName() + ":"); } } =20 ------=_NextPart_000_0065_01C014DC.FAC5C6C0--