summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordeanhiller <[email protected]>2006-11-28 17:32:28 +0000
committerdeanhiller <[email protected]>2006-11-28 17:32:28 +0000
commit902436a6ec721d7102974a6c8da6b29130becd6e (patch)
tree9001a63a124915111566aac6b99c0706713b7e9c
parent42be2f6d1451bcda4b27248407176d1494981c0c (diff)
make error message much better so the user knows the dependency exactly.
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@66 32d7a393-a5a9-423c-abd3-5d954feb1f2f
-rw-r--r--src/java/net/sf/antcontrib/design/Design.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/net/sf/antcontrib/design/Design.java b/src/java/net/sf/antcontrib/design/Design.java
index 10de172..bd40a48 100644
--- a/src/java/net/sf/antcontrib/design/Design.java
+++ b/src/java/net/sf/antcontrib/design/Design.java
@@ -154,8 +154,9 @@ public class Design {
//is not declared
log.log(" classPackage="+classPackage, Project.MSG_DEBUG);
Package p = retreivePack(classPackage);
- if(p == null)
- throw new BuildException(getNoDefinitionError(className), location);
+ if(p == null) {
+ throw new BuildException(getErrorMessage(currentClass, className), location);
+ }
p.setUsed(true); //set package to used since we have classes in it
if(p != null && !p.isNeedDeclarations())
return;