diff options
author | mattinger <[email protected]> | 2006-08-16 03:22:15 +0000 |
---|---|---|
committer | mattinger <[email protected]> | 2006-08-16 03:22:15 +0000 |
commit | 9024dd81590b202f1c9e557aff93aeb53395f5d4 (patch) | |
tree | 31675aafb790ea7e0be18b2ea3b4a2e783da3e54 | |
parent | d8db18a2ac7aafc31ab08a26523e797c2b607cab (diff) |
Fix for bug 1207246
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@19 32d7a393-a5a9-423c-abd3-5d954feb1f2f
-rw-r--r-- | src/java/net/sf/antcontrib/logic/OutOfDate.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/java/net/sf/antcontrib/logic/OutOfDate.java b/src/java/net/sf/antcontrib/logic/OutOfDate.java index 014a15e..c0958b2 100644 --- a/src/java/net/sf/antcontrib/logic/OutOfDate.java +++ b/src/java/net/sf/antcontrib/logic/OutOfDate.java @@ -314,10 +314,15 @@ public class OutOfDate extends Task implements Condition { if (targetpaths != null) { String[] paths = targetpaths.list(); - for (int i = 0; i < paths.length; ++i) { - if (targetNeedsGen(paths[i], spaths)) { - ret = true; - } + if (paths.length == 0) { + ret = true; + } + else { + for (int i = 0; i < paths.length; ++i) { + if (targetNeedsGen(paths[i], spaths)) { + ret = true; + } + } } } |