tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21168] - Incorrect paths in generated SMAP file entries
Date Tue, 05 Aug 2003 01:17:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21168>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21168

Incorrect paths in generated SMAP file entries





------- Additional Comments From jan.luehe@sun.com  2003-08-05 01:17 -------
Applied patch with slight modification:

Instead of (as suggested in the patch):

  private static String unqualify(String path) {
    File f = new File(path);
    return f.getName();
  }

the impl now does this:

  private static String unqualify(String path) {
    return path.substring(path.lastIndexOf(File.separator) + 1);
  }

which avoids generation of a File object.

Mime
View raw message