You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2001/11/05 16:42:17 UTC

cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs DependSet.java

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>