summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordeanhiller <[email protected]>2007-01-27 14:02:11 +0000
committerdeanhiller <[email protected]>2007-01-27 14:02:11 +0000
commitaf1c6835c8f43e93cd546b0dfcec0ee2415a0b23 (patch)
tree7d9800ceba85441678735700faec3f4acc791041
parent59de6d99e359d5e2ccc53cb3e45240937a1803e0 (diff)
fix a bug where files in the default package will cause in RuntimeException to be thrown.
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@75 32d7a393-a5a9-423c-abd3-5d954feb1f2f
-rw-r--r--src/java/net/sf/antcontrib/design/Design.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/java/net/sf/antcontrib/design/Design.java b/src/java/net/sf/antcontrib/design/Design.java
index bd40a48..a68aebe 100644
--- a/src/java/net/sf/antcontrib/design/Design.java
+++ b/src/java/net/sf/antcontrib/design/Design.java
@@ -225,8 +225,12 @@ public class Design {
currentAliasPackage.setUsed(true);
}
log.log(" class="+className, Project.MSG_VERBOSE);
-
- if(!className.startsWith(currentPackageName))
+
+ if(packageName.equals(Package.DEFAULT)) {
+ if(className.contains(".")) {
+ throw new RuntimeException("Internal Error");
+ }
+ } else if(!className.startsWith(currentPackageName))
throw new RuntimeException("Internal Error");
if(!currentAliasPackage.getNeedDepends())