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 DefaultLogger.java
Date Wed, 30 Jan 2002 22:16:41 GMT
sbailliez    02/01/30 14:16:41

  Modified:    src/main/org/apache/tools/ant DefaultLogger.java
  Log:
  Fixed time formatting.
  Submitted by: ruchet@besancon.sema.slb.com (stephane ruchet)
  PR: 5901
  
  Revision  Changes    Path
  1.27      +2 -2      jakarta-ant/src/main/org/apache/tools/ant/DefaultLogger.java
  
  Index: DefaultLogger.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/DefaultLogger.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- DefaultLogger.java	20 Jan 2002 20:45:56 -0000	1.26
  +++ DefaultLogger.java	30 Jan 2002 22:16:41 -0000	1.27
  @@ -223,11 +223,11 @@
               return Long.toString(minutes) + " minute"
                   + (minutes == 1 ? " " : "s ")
                   + Long.toString(seconds%60) + " second"
  -                + (seconds%60 == 1 ? "" : "s");
  +                + (seconds%60 > 1 ? "s" : "");
           }
           else {
               return Long.toString(seconds) + " second"
  -                + (seconds%60 == 1 ? "" : "s");
  +                + (seconds%60 > 1 ? "s" : "");
           }
   
       }
  
  
  

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