ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/depend Depend.java
Date Tue, 09 Mar 2004 15:48:07 GMT
bodewig     2004/03/09 07:48:07

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/depend
                        Depend.java
  Log:
  Make <depend> less verbose if it doesn't do anything.
  
  PR: 27540
  Submitted by:	Rob Oxspring <roxspring at imapmail dot org>
  
  Revision  Changes    Path
  1.42      +9 -1      ant/src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java
  
  Index: Depend.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- Depend.java	9 Feb 2004 21:05:28 -0000	1.41
  +++ Depend.java	9 Mar 2004 15:48:07 -0000	1.42
  @@ -632,8 +632,16 @@
               int count = deleteAllAffectedFiles();
   
               long duration = (System.currentTimeMillis() - start) / 1000;
  +            
  +            final int summaryLogLevel;
  +            if(count>0) {
  +                summaryLogLevel = Project.MSG_INFO;
  +            }  else {
  +                summaryLogLevel = Project.MSG_DEBUG;
  +            }
  +            
               log("Deleted " + count + " out of date files in "
  -                + duration + " seconds");
  +                + duration + " seconds", summaryLogLevel);
           } catch (Exception e) {
               throw new BuildException(e);
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message