tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Anderson" <MMAND...@novell.com>
Subject [PATCH] FileUtil.java to handle paths on NetWare.
Date Wed, 06 Sep 2000 16:58:36 GMT
NetWare is a funny beast when it comes to paths.  It acts a lot like Windoze (i.e. file.separator='\')
but the "drive letters" are volume names that can be up to 16 characters long.  This is a
patch for FileUtil.java to handle some of these issues on NetWare.  I've also tested this
patched file on Windows 2000 and Linux to make sure that I didn't cause any harm there.  This
is patched against the tomcat_32 tag.  If a committer could check this in for 3.2b3 I would
appreciate it.

Mike Anderson
Senior Software Engineer
Platform Services Group
mmanders@novell.com
Novell, Inc., the leading provider of Net services software
www.novell.com 

cvs -q diff FileUtil.java (in directory D:\Jakarta\jakarta-tomcat\src\share\org\apache\tomcat\util\)
Index: FileUtil.java
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/util/FileUtil.java,v
retrieving revision 1.9.2.2
diff -r1.9.2.2 FileUtil.java
267a268,273
>         // fix path on NetWare
>         if (System.getProperty("os.name").startsWith("NetWare") &&
>             path.length() >=3 &&
>             path.indexOf(':') > 0)
>             patchPath = patchPath.replace('/', '\\');
> 
281a288,294
> 
>         // NetWare volume:
>         if (System.getProperty("os.name").startsWith("NetWare") &&
>             path.length() >=3 &&
>             path.indexOf(':') > 0)
>             return true;
> 




Mime
View raw message