ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs DependSet.java
Date Mon, 05 Nov 2001 15:42:17 GMT
bodewig     01/11/05 07:42:17

  Modified:    src/main/org/apache/tools/ant/taskdefs DependSet.java
  Log:
  empty sourcefilesets kill dependset.
  
  PR: 4290
  
  Revision  Changes    Path
  1.6       +3 -4      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/DependSet.java
  
  Index: DependSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/DependSet.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DependSet.java	2001/11/02 07:56:52	1.5
  +++ DependSet.java	2001/11/05 15:42:17	1.6
  @@ -108,7 +108,7 @@
    * </li></ulist>
    * 
    * @author <a href="mailto:cstrong@arielpartners.com">Craeg Strong</a>
  - * @version $Revision: 1.5 $ $Date: 2001/11/02 07:56:52 $
  + * @version $Revision: 1.6 $ $Date: 2001/11/05 15:42:17 $
    */
   public class DependSet extends MatchingTask {
   
  @@ -237,8 +237,7 @@
                 DirectoryScanner sourceDS = sourceFS.getDirectoryScanner(project);
                 String[] sourceFiles      = sourceDS.getIncludedFiles();
   
  -              int i = 0;
  -              do {
  +              for (int i=0; upToDate && i < sourceFiles.length; i++) {
                    File src = new File(sourceFS.getDir(project), sourceFiles[i]);
   
                    if (src.lastModified() > now) {
  @@ -257,7 +256,7 @@
   
                       }
                    }
  -              } while (upToDate && (++i < sourceFiles.length) );
  +              }
              }
           }
   
  
  
  

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