From ee474a93b15ee4be448500c373d0acb04af5ef57 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Mon, 5 Nov 2001 15:42:17 +0000 Subject: [PATCH] empty sourcefilesets kill dependset. PR: 4290 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269870 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/DependSet.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/DependSet.java b/src/main/org/apache/tools/ant/taskdefs/DependSet.java index c045bad29..6c8cf1464 100644 --- a/src/main/org/apache/tools/ant/taskdefs/DependSet.java +++ b/src/main/org/apache/tools/ant/taskdefs/DependSet.java @@ -237,8 +237,7 @@ public class DependSet extends MatchingTask { 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 @@ public class DependSet extends MatchingTask { } } - } while (upToDate && (++i < sourceFiles.length) ); + } } }