diff options
-rw-r--r-- | src/java/net/sf/antcontrib/design/VerifyDesignDelegate.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/net/sf/antcontrib/design/VerifyDesignDelegate.java b/src/java/net/sf/antcontrib/design/VerifyDesignDelegate.java index 3e5e715..3471ec9 100644 --- a/src/java/net/sf/antcontrib/design/VerifyDesignDelegate.java +++ b/src/java/net/sf/antcontrib/design/VerifyDesignDelegate.java @@ -152,7 +152,10 @@ public class VerifyDesignDelegate implements Log { verifyPathAdheresToDesign(design, p);
}
- design.fillInUnusedPackages(designErrors);
+ //only put unused errors if there are no other errors
+ //this is because you end up with false unused errors if you don't do this.
+ if(designErrors.isEmpty())
+ design.fillInUnusedPackages(designErrors);
if (! designErrors.isEmpty()) {
log(designErrors.size()+"Errors.", Project.MSG_WARN);
|