diff options
author | deanhiller <[email protected]> | 2006-10-16 16:50:25 +0000 |
---|---|---|
committer | deanhiller <[email protected]> | 2006-10-16 16:50:25 +0000 |
commit | 4801d258a1be845c9a25cb7f13a2cc3012db92ba (patch) | |
tree | 0daf8f50362b567ca28cb8030e0f717a745cc729 /src/java | |
parent | 8049a6e87ba1c836baab5dd267dd5cab2c19331d (diff) |
fix bug in verify design.
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@54 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'src/java')
-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;
|