ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs RecorderEntry.java
Date Sat, 15 Dec 2001 00:24:35 GMT
sbailliez    01/12/14 16:24:35

  Modified:    src/main/org/apache/tools/ant/taskdefs RecorderEntry.java
  Log:
  Take advantage of StringUtils
  
  Revision  Changes    Path
  1.4       +6 -8      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java
  
  Index: RecorderEntry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RecorderEntry.java	2001/10/28 21:26:29	1.3
  +++ RecorderEntry.java	2001/12/15 00:24:34	1.4
  @@ -57,6 +57,8 @@
   import org.apache.tools.ant.BuildLogger;
   import org.apache.tools.ant.Project;
   import org.apache.tools.ant.BuildEvent;
  +import org.apache.tools.ant.util.StringUtils;
  +
   import java.io.PrintStream;
   
   
  @@ -92,10 +94,6 @@
        * The start time of the last know target.
        */
       private long targetStartTime = 0l;
  -    /**
  -     * Line separator.
  -     */
  -    private static String lSep = System.getProperty("line.separator");
   
       //////////////////////////////////////////////////////////////////////
       // CONSTRUCTORS / INITIALIZERS
  @@ -136,9 +134,9 @@
   
           Throwable error = event.getException();
           if (error == null) {
  -            out.println(lSep + "BUILD SUCCESSFUL");
  +            out.println(StringUtils.LINE_SEP + "BUILD SUCCESSFUL");
           } else {
  -            out.println(lSep + "BUILD FAILED" + lSep);
  +            out.println(StringUtils.LINE_SEP + "BUILD FAILED" + StringUtils.LINE_SEP);
               error.printStackTrace(out);
           }
           out.flush();
  @@ -147,7 +145,7 @@
   
       public void targetStarted(BuildEvent event) {
           log( ">> TARGET STARTED -- " + event.getTarget(), Project.MSG_DEBUG );
  -        log( lSep + event.getTarget().getName() + ":", Project.MSG_INFO );
  +        log( StringUtils.LINE_SEP + event.getTarget().getName() + ":", Project.MSG_INFO
);
           targetStartTime = System.currentTimeMillis();
       }
   
  @@ -159,7 +157,7 @@
       }
   
       public void taskStarted(BuildEvent event) {
  -        log( ">>> TAST STARTED -- " + event.getTask(), Project.MSG_DEBUG );
  +        log( ">>> TASK STARTED -- " + event.getTask(), Project.MSG_DEBUG );
       }
   
       public void taskFinished(BuildEvent event) {
  
  
  

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