ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Javac.java
Date Tue, 15 Aug 2000 13:34:19 GMT
conor       00/08/15 06:34:19

  Modified:    src/main/org/apache/tools/ant/taskdefs Javac.java
  Log:
  Provide an explanation, at verbose level, of why Javac decides to compile
  certain classes.
  
  Revision  Changes    Path
  1.35      +9 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java
  
  Index: Javac.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- Javac.java	2000/08/09 14:09:49	1.34
  +++ Javac.java	2000/08/15 13:34:19	1.35
  @@ -360,7 +360,15 @@
                           files[i], Project.MSG_WARN);
                   }
   
  -                if (srcFile.lastModified() > classFile.lastModified()) {
  +                if (!classFile.exists() || srcFile.lastModified() > classFile.lastModified())
{
  +                    if (!classFile.exists()) {
  +                        log("Compiling " + srcFile.getPath() + " because class file " 
  +                                + classFile.getPath() + " does not exist", Project.MSG_VERBOSE);
  +                    }
  +                    else {
  +                        log("Compiling " + srcFile.getPath() + " because it is out of date
with respect to " 
  +                                + classFile.getPath(), Project.MSG_VERBOSE);
  +                    }                                                        
                       compileList.addElement(srcFile.getAbsolutePath());
                   }
               }
  
  
  

Mime
View raw message