diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/java/net/sf/antcontrib/design/Design.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/net/sf/antcontrib/design/Design.java b/src/java/net/sf/antcontrib/design/Design.java index 08d0fce..363bf95 100644 --- a/src/java/net/sf/antcontrib/design/Design.java +++ b/src/java/net/sf/antcontrib/design/Design.java @@ -150,6 +150,9 @@ public class Design { //is not declared
log.log(" classPackage="+classPackage, Project.MSG_DEBUG);
Package p = retreivePack(classPackage);
+ Package p = retreivePack(classPackage);
+ if(p == null)
+ throw new BuildException(getNoDefinitionError(className), location);
p.setUsed(true); //set package to used since we have classes in it
if(p != null && !p.isNeedDeclarations())
return;
|