ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1124] Changed - RMIC task breaks if package name starts with ".class"
Date Mon, 26 Mar 2001 22:52:44 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1124

*** shadow/1124	Mon Mar 26 14:50:46 2001
--- shadow/1124.tmp.15477	Mon Mar 26 14:52:44 2001
***************
*** 5,11 ****
  |       Status: NEW                         Version: 1.3                     |
  |   Resolution:                            Platform: PC                      |
  |     Severity: Normal                   OS/Version: Windows NT/2K           |
! |     Priority:                           Component: Core tasks              |
  +----------------------------------------------------------------------------+
  |  Assigned To: ant-dev@jakarta.apache.org                                   |
  |  Reported By: mstover1@apache.org                                          |
--- 5,11 ----
  |       Status: NEW                         Version: 1.3                     |
  |   Resolution:                            Platform: PC                      |
  |     Severity: Normal                   OS/Version: Windows NT/2K           |
! |     Priority: High                      Component: Core tasks              |
  +----------------------------------------------------------------------------+
  |  Assigned To: ant-dev@jakarta.apache.org                                   |
  |  Reported By: mstover1@apache.org                                          |
***************
*** 34,37 ****
          }
      }
  </pre>
! It might be better to use the lastIndexOf() method.
--- 34,51 ----
          }
      }
  </pre>
! It might be better to use the lastIndexOf() method.
! 
! ------- Additional Comments From mstover1@apache.org  2001-03-26 14:52 -------
! I guess HTML tags are not allowed.  Here's the code in a more readable format:
! 
! protected void scanDir(File baseDir, String files[],
!                            FileNameMapper mapper) {
!         SourceFileScanner sfs = new SourceFileScanner(this);
!         String[] newFiles = sfs.restrict(files, baseDir, baseDir, mapper);
!         for (int i = 0; i < newFiles.length; i++) {
!             String classname = newFiles[i].replace(File.separatorChar, '.');
! problem-->  classname = classname.substring(0, classname.indexOf(".class"));
!             compileList.addElement(classname);
!         }
!     }

Mime
View raw message