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: [EMAIL PROTECTED] |
| Reported By: [EMAIL PROTECTED] |
--- 5,11 ----
| Status: NEW Version: 1.3 |
| Resolution: Platform: PC |
| Severity: Normal OS/Version: Windows NT/2K |
! | Priority: High Component: Core tasks |
+----------------------------------------------------------------------------+
| Assigned To: [EMAIL PROTECTED] |
| Reported By: [EMAIL PROTECTED] |
***************
*** 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 [EMAIL PROTECTED] 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);
! }
! }