From 9024dd81590b202f1c9e557aff93aeb53395f5d4 Mon Sep 17 00:00:00 2001 From: mattinger Date: Wed, 16 Aug 2006 03:22:15 +0000 Subject: 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 --- src/java/net/sf/antcontrib/logic/OutOfDate.java | 13 +++++++++---- 1 file 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; + } + } } } -- cgit v1.2.3