diff options
author | deanhiller <[email protected]> | 2006-10-25 21:22:43 +0000 |
---|---|---|
committer | deanhiller <[email protected]> | 2006-10-25 21:22:43 +0000 |
commit | e32480886497d7c117bd34c97ac5d26ab7f8e47f (patch) | |
tree | e9e08b0a048cbd32b8d824158afca87747872091 /src | |
parent | 50f7c8052df7860ec662e5ac06d557a212bc2131 (diff) |
fix reporting of false unused and only report unused after all other errors are fixed.
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@59 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'src')
-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);
|