You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2001/12/21 14:27:09 UTC

cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs RecorderEntry.java

donaldp     01/12/21 05:27:09

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs
                        RecorderEntry.java
  Log:
  Remove dependency on StringUtils.
  
  Revision  Changes    Path
  1.4       +7 -3      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java
  
  Index: RecorderEntry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/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/12/16 04:12:39	1.3
  +++ RecorderEntry.java	2001/12/21 13:27:09	1.4
  @@ -22,6 +22,10 @@
    */
   public class RecorderEntry implements BuildLogger
   {
  +    /**
  +     * the line separator for this OS
  +     */
  +    private final static String LINE_SEP = System.getProperty( "line.separator" );
   
       //////////////////////////////////////////////////////////////////////
       // ATTRIBUTES
  @@ -128,11 +132,11 @@
           Throwable error = event.getException();
           if( error == null )
           {
  -            out.println( StringUtils.LINE_SEP + "BUILD SUCCESSFUL" );
  +            out.println( LINE_SEP + "BUILD SUCCESSFUL" );
           }
           else
           {
  -            out.println( StringUtils.LINE_SEP + "BUILD FAILED" + StringUtils.LINE_SEP );
  +            out.println( LINE_SEP + "BUILD FAILED" + LINE_SEP );
               error.printStackTrace( out );
           }
           out.flush();
  @@ -177,7 +181,7 @@
       public void targetStarted( BuildEvent event )
       {
           log( ">> TARGET STARTED -- " + event.getTarget(), Project.MSG_DEBUG );
  -        log( StringUtils.LINE_SEP + event.getTarget().getName() + ":", Project.MSG_INFO );
  +        log( LINE_SEP + event.getTarget().getName() + ":", Project.MSG_INFO );
           targetStartTime = System.currentTimeMillis();
       }
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>