summaryrefslogtreecommitdiffstats
path: root/src/java/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/net')
-rw-r--r--src/java/net/sf/antcontrib/logic/OutOfDate.java13
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;
+ }
+ }
}
}