Browse Source

fix because of class cast exception detected

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274502 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 22 years ago
parent
commit
d4dd76a882
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/main/org/apache/tools/ant/types/ZipFileSet.java

+ 4
- 1
src/main/org/apache/tools/ant/types/ZipFileSet.java View File

@@ -295,7 +295,10 @@ public class ZipFileSet extends FileSet {
}

Object o = getRefid().getReferencedObject(p);
if (!(o instanceof ZipFileSet) && !(o instanceof FileSet)) {
if (o instanceof FileSet) {
return (AbstractFileSet)(new ZipFileSet((FileSet)o));
}
else if (!(o instanceof ZipFileSet)) {
String msg = getRefid().getRefId() + " doesn\'t denote a zipfileset or a fileset";
throw new BuildException(msg);
} else {


Loading…
Cancel
Save