ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/types ZipFileSet.java
Date Tue, 22 Apr 2003 23:33:32 GMT
antoine     2003/04/22 16:33:32

  Modified:    src/main/org/apache/tools/ant/types ZipFileSet.java
  Log:
  fix because of class cast exception detected
  
  Revision  Changes    Path
  1.18      +4 -1      ant/src/main/org/apache/tools/ant/types/ZipFileSet.java
  
  Index: ZipFileSet.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/ZipFileSet.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ZipFileSet.java	22 Apr 2003 23:16:30 -0000	1.17
  +++ ZipFileSet.java	22 Apr 2003 23:33:32 -0000	1.18
  @@ -295,7 +295,10 @@
           }
   
           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 {
  
  
  

Mime
View raw message