diff options
-rw-r--r-- | src/java/net/sf/antcontrib/design/Design.java | 5 |
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;
|